Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Mandriva Linux Help
Reload this Page Running as user "root"....
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Mandriva Linux Help For help and discussion about Mandriva (formally Mandrake) Linux.

Reply
 
Thread Tools Display Modes
Old 06-12-2008   #1 (permalink)
shlado
Just Joined!
 
Join Date: Jun 2008
Posts: 2
Running as user "root"....

Hi,
I'm kinda new to Linux

my problem is when I'm trying to run tshark on my server i get the following message :
Running as user "root" and group "root". This could be dangerous.

what this message mean ?
and how can I removed it from showing every time I run tshark
I was logged in as root.

tnks
shlado is offline   Reply With Quote
Old 06-12-2008   #2 (permalink)
bigtomrodney
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,144
Quote:
Originally Posted by shlado View Post
what this message mean ?
It means you shouldn't run tshark as root.
Quote:
and how can I removed it from showing every time I run tshark
Don't log in as root
Quote:
I was logged in as root.
You need to create another user to run as.

More seriously though (and I apologise for the sarcasm above) it is a bad idea to run as root. root is your system account and should only be used for system-wide maintenance. It is a terrible idea as you are allowing any mistake you make to be serious enough to take down the whole system. One buggy application can kill or freeze your PC. Also root is at a much higher level than even Administrator is in Windows. Remember that most exploits execute as the running user, so if you run as root you are opening up your system to the maximum possible damage.

As general practice you should create an everyday user and log in as that. Never log in graphically as root and try to only run root commands using sudo or su -.

If any of this is a bit confusing please do ask. I'll be happy to help as most people here will be. Let's just call the 'logging in as root' lesson the most important one
__________________
In the land of the blind, the night vision users are laughing at the king

Registered Linux user #378740

New members read here / Forum Rules
bigtomrodney is offline   Reply With Quote
Old 06-12-2008   #3 (permalink)
ozar
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 8,544
Welcome to the forums!

Yep, running Linux as root user is probably the worst habit you can get yourself into, in my opinion. Time to start running a normal user account and then su'ing to root, or use sudo. I probably haven't logged in as root user in at least the last 5 years, and have had no need to do so.

Best of luck with it.
__________________
oz

New Users: * FAQ *

ozar is offline   Reply With Quote
Old 06-12-2008   #4 (permalink)
masterjediama
Just Joined!
 
Join Date: Feb 2008
Posts: 14
I have the exact opposite problem. when I start up Linux. It's set to go right to the 'guest' account. but after a few minutes, it says "$home/guest folder is full. cannot login as guest"

anyone have any ideas?
masterjediama is offline   Reply With Quote
Old 06-13-2008   #5 (permalink)
jayd512
Linux User
 
jayd512's Avatar
 
Join Date: Feb 2008
Location: Louisville, KY
Posts: 372
Probably the easiest thing to try is to login as root, switch over to the full guest directory, and start doing some house cleaning. You probably have some files and such in there that you could do without.
__________________
Jay

New member? Little confused? Check it out!
Registered Linux User #463940

Lookin' for a Distro?
jayd512 is offline   Reply With Quote
Old 06-13-2008   #6 (permalink)
Manchunian
Linux Enthusiast
 
Manchunian's Avatar
 
Join Date: Dec 2007
Location: France but my heart stays in Britain
Posts: 619
You don't need to log in as root to do that. Remeber that just logging in when you're root can cause damage. This is because X can send parametres that can damage the system. This is why most distros won't even let you run a graphical text editor as root, yet alone log in as root.
To move things, exectute the following commands:

Code:
mv /old_location/your_file /new_location
or, if it's a directory:

Code:
mv -r /old_location/your_directory /new_location/
Alternatively, you can copy then remove. I prefer this because if you make a mistake you can rectify later:

To copy a file:

Code:
cp /old_location/your_file /new_location

To remove a file:


Quote:
rm /old_location/your_file
To copy a directory:

Code:
cp -r /old_location/your_directory /new_location

To remove a directory


Code:
rm -r /old_location/your_directory

You can only execute these commands as root - failure to do so will result in a permissions error. Double check before you press enter that you haven't made a mistake - especially when deleting - you won't be asked "Are you sure?" Probably the safest way to do this, at this stage, is to drag and drop the file or directory into the console. Konsole (the default Kde terminal) gives you some choices when you do this, including pasting only, copying and moving.
Don't get into the habit of logging into root - even to do temporary or important tasks like this one. If you do, you'll do it again and again, and one day you'll have a problem. Note also that one of the reasons (but not the only reason) why Linux and other Unix OSs are more secure than Windows is because these systems have a separate root account for admin tasks, whereas in Windows most people are permanently working as administrations
__________________
Distribution: Archlinux
Processor: Celeron 2.6 GHz; Ram: 750 MB
Graphics card: Nvidia GeForce4 MX 440-SE
Mother board: Columbia 4
Manchunian is offline   Reply With Quote
Old 06-13-2008   #7 (permalink)
jayd512
Linux User
 
jayd512's Avatar
 
Join Date: Feb 2008
Location: Louisville, KY
Posts: 372
I didn't even think of just moving the directory That would be a far safer option than mine. Thanks, Manchunian!
__________________
Jay

New member? Little confused? Check it out!
Registered Linux User #463940

Lookin' for a Distro?
jayd512 is offline   Reply With Quote
Old 06-13-2008   #8 (permalink)
masterjediama
Just Joined!
 
Join Date: Feb 2008
Posts: 14
the thing is, I didn't save anything in the guest folder. I had just installed it and like it. I came back about a week later and it was giving me this error message.

I installed it on an external hdd and tried it on a different computer and it wouldn't boot. I have a feeling that the failer to boot started this whole error stuff.
masterjediama is offline   Reply With Quote
Old 06-15-2008   #9 (permalink)
shlado
Just Joined!
 
Join Date: Jun 2008
Posts: 2
I understand the importance of not login as root. but is there still a way to remove this message ?
I got some other PCs that does not show this message though Im login as root
shlado is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:31 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0