LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2005, 04:38 PM   #1
Vodius
LQ Newbie
 
Registered: Mar 2005
Posts: 27

Rep: Reputation: 15
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
 
Old 05-15-2005, 04:42 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"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
 
Old 05-15-2005, 04:45 PM   #3
Vodius
LQ Newbie
 
Registered: Mar 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Ok, thank you.
 
Old 05-15-2005, 04:55 PM   #4
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
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.
 
Old 05-15-2005, 04:57 PM   #5
Vodius
LQ Newbie
 
Registered: Mar 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Then how should I access these files?
 
Old 05-15-2005, 07:48 PM   #6
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
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.

Last edited by mugstar; 05-15-2005 at 07:54 PM.
 
Old 05-15-2005, 08:28 PM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cyrus email account linux account nobu Linux - Enterprise 0 10-31-2005 04:16 AM
Question: Changing My Root Account Name eech55 *BSD 8 08-18-2004 04:09 PM
User account question ! suakki Linux - Software 2 05-03-2004 06:56 PM
Vsftpd - Config question (regarding account setup) |nSaNe Linux - Software 0 04-13-2004 08:08 AM
permissions question... can I make a directory writable from my user account hindenbergbaby Linux - Newbie 9 10-20-2003 05:42 PM


All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration