LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question on what account I should use. (https://www.linuxquestions.org/questions/linux-newbie-8/question-on-what-account-i-should-use-323777/)

Vodius 05-15-2005 03:38 PM

Question on what account I should use.
 
Ok. I am running my computer on a small home network of which I am the only one with Linux (slackware) and I was wondering if it would be safe to just log in as Root. Or, should I just take the time to chmod myself to where I can edit what I need to.


Thanks in Advance
A curious :newbie:

jailbait 05-15-2005 03:42 PM

"Ok. I am running my computer on a small home network of which I am the only one with Linux (slackware) and I was wondering if it would be safe to just log in as Root. Or, should I just take the time to chmod myself to where I can edit what I need to."

If you are using the internet or a local net then running as user limits the amount of damage that any malware you encounter can do.

----------------------------
Steve Stites

Vodius 05-15-2005 03:45 PM

Ok, thank you.

mugstar 05-15-2005 03:55 PM

Don't log in as root. Always a bad idea. Nor would I mess around `chmod`-ing files which are root access only (which I think is what you mean...). Use `sudo` or `su -c 'command'`from your normal user login.

Vodius 05-15-2005 03:57 PM

Then how should I access these files?

mugstar 05-15-2005 06:48 PM

Suppose you need to edit the file /etc/lilo.conf, which is writable only by root. Do
Code:

su -c 'kwrite /etc/lilo.conf'
(substitute kwrite with whatever editor you'd prefer) then enter the root password. Make your edit, save the file and exit. You'll be dropped back to your normal user.

Poetics 05-15-2005 07:28 PM

If you need to run multiple commands, "su -" will work just fine, but remember to type "exit" as soon as you no longer need those priviledges.

NEVER run KDE/Gnome/WM as root. Just not good security sense.


All times are GMT -5. The time now is 02:07 AM.