LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-02-2013, 12:57 PM   #1
PeterUK
Member
 
Registered: May 2009
Posts: 281

Rep: Reputation: 16
Logging in as Root


I know I have been told not to do it.

I want to know if you create two user root and you normal user do you need to give two different password?

Thanks

UPDATE: Could you have a file manager to be able to open it as root (Like Thunar) I think I will make things easier to administrate and anything you move or open it will open it as root.

Last edited by PeterUK; 07-02-2013 at 01:00 PM.
 
Old 07-02-2013, 01:08 PM   #2
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
One Password, Multiple Accounts

You can use the same password for multiple user accounts, even root.

On some development systems I create several accounts and use the same password for ALL of the accounts. Security is not an issue and I'm the only one using the system. It makes it simple for me.
 
Old 07-02-2013, 01:21 PM   #3
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
It is considered safest to always use an account with "user" privileges. Then, when you need to do something "out-of-the-ordinary", you acquire root for that task only and then relinquish it as soon as you can. Nowadays the best technique for this is to use the sudoers file and sudo-capability.

For your second question, you can run any application (even X-windows app) from your normal account as "su -c the_app_name" from a terminal session, or more graphically via gksu. I think there is also a gksudo too.
 
Old 07-02-2013, 01:25 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I know I have been told not to do it.
Whoever told you that is being silly. Routine root access is normal in any 'nix system. Sure, think and read twice before pressing Enter, just like carpenters live by the adage "measure twice, cut once."

I use the root account often. Sometimes with su, sometimes with su -, sometimes with sudo, and sometimes through the sudoers list. I run a home network. My normal account and root account passwords are the same.

That said, if you use a portable computer, then having different passwords is a reasonable idea. Security is often a compromise between convenience and protection.

Desktops like Xfce, KDE, Trinity, etc., provide their own mechanism to open file managers and other apps directly as root. So doing that is not a major problem. KDE is kdesu, Trinity is tdesu, I don't know the Xfce way. If you want to use a console file manager, such as midnight commander, use the 'su -' command to ensure the root account uses root environment variables and not user variables.
 
Old 07-02-2013, 02:08 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Woodsman View Post
My normal account and root account passwords are the same.
That simply is not a (security) best practice. Before you counter that you think that what you do in your LAN is your problem alone please be aware that once a machine is part of a public network it has the potential to become everyones problem.
 
Old 07-02-2013, 02:16 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
loging into the GUI at root is normally not a good idea
x11 is not secure

however sometimes it might be needed
-- however !!!
starting as a normal user and THEN in the terminal becoming root is preferred
Code:
su -
-- root pass when asked for 
dolphin
now on all my systems a CAN login as root at boot
-- but I very very rarely do that

at time of install i do login as root
to set the root gui theme to something hideous
an "eye sore" like "high contrast"

that way i KNOW very fast that i am running some gui tool as root

also i make sure that the /root/.bashrc has PS1 set to be RED

that way i KNOW rather fast that i am root in the terminal
Quote:
I want to know if you create two user root
two root users ?
not a good idea

set up "sudo" and ONLY give that other person the permissions that they NEED and ONLY what they need .


on my mostly single user system ( some other people use it sometimes)
my "normal" user password is rather easy
BUT
the root pass is NOT
it is a 16 character string that I memorized
 
Old 07-02-2013, 02:26 PM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
That simply is not a (security) best practice. Before you counter that you think that what you do in your LAN is your problem alone please be aware that once a machine is part of a public network it has the potential to become everyones problem.
Best practice? Maybe, maybe not. Sane? For me, yes. For others? Some yes, for some, no.

All of my systems run an iptables firewall. All systems are behind a Linksys router running DD-WRT with all services disabled, which is behind a VOIP router, which is behind an ISP CPE that is encrypted with all ports disabled. All of which are on different subnets. Potential for intrusion? Sure. Likely? No. Anybody who bangs through all of those layers has far more skills that I can stop with a simple password. Exactly how is this "everyone's problem"?

Ogres are like onions. They have layers. (From the movie Shrek.)

Last edited by Woodsman; 07-03-2013 at 12:49 PM.
 
4 members found this post helpful.
Old 07-02-2013, 03:40 PM   #8
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
I think the chance that an infected (or taken-over) machine can then be used as a springboard for other activities, like distributed denial-of-service (DDOS), or email spam or the like is the concern. A weak machine (easy password) is a gift to some really nasty people in this "Wild-west" internet world.
 
1 members found this post helpful.
Old 07-02-2013, 03:40 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Woodsman View Post
Anybody who bangs through all of those layers has for more skills that I can stop with a simple password.
Or simply has written an exploit for your favorite browser, chat software or whatever services you use that are communicating with the net.
 
Old 07-02-2013, 03:55 PM   #10
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by TobiSGD View Post
Or simply has written an exploit for your favorite browser, chat software or whatever services you use that are communicating with the net.
Point taken. But the subject is password security.
 
Old 07-02-2013, 04:10 PM   #11
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by TobiSGD View Post
Or simply has written an exploit for your favorite browser, chat software or whatever services you use that are communicating with the net.
Even if someone were to compromise your user's account, sharing the same password would offer no advantage in gaining root access than using different passwords.
 
1 members found this post helpful.
Old 07-02-2013, 04:22 PM   #12
YellowApple
Member
 
Registered: Mar 2013
Location: Reno, Nevada, United States
Distribution: Slackware, OpenBSD, openSUSE, Android
Posts: 95

Rep: Reputation: 37
Quote:
Originally Posted by saulgoode View Post
Even if someone were to compromise your user's account, sharing the same password would offer no advantage in gaining root access than using different passwords.
Except that sharing the same password is anticipated, and said password will probably be the first one the attacker tries to use.
 
1 members found this post helpful.
Old 07-02-2013, 04:45 PM   #13
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Quote:
Originally Posted by PeterUK View Post
I want to know if you create two user root and you normal user do you need to give two different password?
Need to? No.

Good idea? For sure.
 
Old 07-02-2013, 05:08 PM   #14
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by YellowApple View Post
Except that sharing the same password is anticipated, and said password will probably be the first one the attacker tries to use.
Except that the attacker has no way of determining the user's password. He could change it, but that would not change the root account's.
 
Old 07-02-2013, 08:18 PM   #15
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
You don't need to log on to root. It is a poor practice to use. Learn proper ways.

Modern distro's allow you to either use sudo or launch apps as superuser.

Root is a generic name for admin or superuser. It could be that many users have root access or full control or superuser account privileges. Not really a good reason to do that. Use least privileges needed to do tasks.
 
  


Reply



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
logging in to root soltanloo Linux - General 8 09-22-2009 07:16 AM
logging in as root unklekoolaid Ubuntu 9 09-01-2006 11:10 AM
Logging on as Root Iain Wilson Linux - Newbie 7 09-16-2003 02:23 AM
Logging In as root DiabloDan Linux - Newbie 6 07-22-2003 03:00 PM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:28 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
Open Source Consulting | Domain Registration