Topic: Statler Default Users Setup.

I had only run statler in live mode so i wasn't aware of the fact that statler will mimic ubuntu's 'users setup' behaviour (that being creating only one user who will act as both 'normal' and 'privileged' user with the use of sudo)... now i made an installation and confirmed it... what came to my mind was "wow, this is bad"... well, i'm going to dare to give corenominal a suggestion: don't do it. Now that #! will be based on debian, why not do it the debian way, which is the original/normal linux/unix-like way, a 'root' (privileged) user and a separate 'normal' (restricted) user, let's not propagate what in my humble opinion is an ubuntu misbehaviour. Because this 'one user setup' is (in my opinion) one of the most confusing/unnecessary/unsecure things you can do. Just a suggestion with all the respect.

I know that at the end this is a corenominal's decision, but may be, we can convince him. If you agree with this just give it a reply. If you don't agree, it's ok, tell it too, but remember that this is not intended to be a flame against or in favour of any particular linux distribution, just a suggestion to change a particular default users setup configuration.

aka xylox at irc
aka aaro2011 at Deviantart

Re: Statler Default Users Setup.

I don't agree with this idea. I am what i would consider a power user. Which means i spent a good chunk of my time downloading new software, updating, and generally just doing things which need root access (even just editing certain config files).
In your setup, I'd either have to be logged in as a user, and then every time i want to make a small change which needs root, i'd have to switch users. Well that wouldn't happen (its a pain in the behind), so I'd be forced to run as root the entire time.

This is a happy medium. I am not root, and won't damage my system by mistake, and any programs that might try to get ahold of my computer are only users, however when i need root privileges, its a single command away.

just call me...
~FSM~

Re: Statler Default Users Setup.

I don't agree with getting rid of sudo however I would set a root password. I don't like the Ubuntu style of disabling root.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Statler Default Users Setup.

FiniteStateMachine wrote:

any programs that might try to get ahold of my computer are only users, however when i need root privileges, its a single command away.

I don't like the sudo-way too, but this is the reason why i keep using it instead of just log-in as root.

Re: Statler Default Users Setup.

anonymous wrote:

I don't agree with getting rid of sudo however I would set a root password. I don't like the Ubuntu style of disabling root.

I can agree with setting a root password. its usually one of the first things I do.

just call me...
~FSM~

Re: Statler Default Users Setup.

FiniteStateMachine wrote:

In your setup, I'd either have to be logged in as a user, and then every time i want to make a small change which needs root, i'd have to switch users. Well that wouldn't happen (its a pain in the behind), so I'd be forced to run as root the entire time.

Personally I think  it would be nice if the change to Debian included conventional  user/root accounts but  don't think there will ever be agreement on sudo/root use. It really is not that important as it only takes seconds to change.

What you describe above is not the way most root users would work. As a user you would just need to open a terminal type su ( or sux for a graphical application) followed by root password do what you want then ctl +d and you are back as user all from your user desktop. sudo does not give any any more protection from damaging your system, it will be operator error either as root or sudo, no difference.

Re: Statler Default Users Setup.

so then titan, the only difference is with su and root, you have a separate password for root commands, and with sudo it uses the users password?

just call me...
~FSM~

Re: Statler Default Users Setup.

titan wrote:

( or sux for a graphical application)

I don't have sux on my machine. Also by googling, Ive found that sux may just be a link to su.

@FiniteStateMachine - When you use su to change to a root shell yes it asks for root password. Also you can configure sudo to ask for the root password if you like.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Statler Default Users Setup.

anonymous wrote:

@FiniteStateMachine - When you use su to change to a root shell yes it asks for root password. Also you can configure sudo to ask for the root password if you like.

Ok, well now I am confused. It seems like sudo and root/su do the exact same job... Is there some primary difference i'm missing?

just call me...
~FSM~

Re: Statler Default Users Setup.

"root" and "sudo" are nothing more or less than optional security tools. Whichever option is the default, some users will change it. sudo is an option available to all Debian users, so I don't know how you can say "sudo is not the Debian way." There are pros and cons to either method; saying that one is "better" than the other is a statement of opinion.

#! has always used sudo, so I am of the "ain't broke, don't fix it" mentality. smile I am so used to sudo from 2 years of heavy #! use that I don't even give it a second thought.

Re: Statler Default Users Setup.

FiniteStateMachine wrote:

Ok, well now I am confused. It seems like sudo and root/su do the exact same job... Is there some primary difference i'm missing?

If you run the commands without any flags, su will just change the shell to the default root, whereas sudo will just run a command. It looks like this:

~ $ su
Password: 
/home/kevin # nano
/home/kevin # exit
exit
~ $ sudo nano
Password: 
~ $ 

To run a single command with su, you would do "su -c commandgoeshere". You can also use sudo to run a (login) shell by doing sudo -i. This looks like this:

~ $ sudo -i
Password: 
~ # nano
~ # exit
logout
~ $ su -c nano
Password: 
~ $ 
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Statler Default Users Setup.

anonymous wrote:

I don't have sux on my machine. Also by googling, Ive found that sux may just be a link to su.

Just use Synaptic to search for applications,  sux is just a wrapper around su to run an x11 application as root.

Re: Statler Default Users Setup.

A few tips here:
You can't login into X as root user (At lest this is the default in all linux distros i have knowledge of).
To install something, what you do (like @titan said) is open a terminal and instead of doing sudo <command>, you type su root, type the root password, which isn't the same of the normal user (what is the key for security here) and you get a root terminal which won't expire like with sudo at a given time.
For root acces to graphical apps just use gksu <graphical-app> and again is the root password what you type. And most times this is already done in menu links to apps like synaptic package manager for example. So it won't really make any discomfort or complication other than having (like logic says) a different password for administrative tasks. And you can still have sudo installed, that's not it, the key here is to have a separate 'root' (administrative privileges) account.
And remember it's not my setup, it's the normal in all linux/unix-like systems. The only system i know that does this 'one user' thing is ubuntu.

aka xylox at irc
aka aaro2011 at Deviantart

Re: Statler Default Users Setup.

titan wrote:

Just use Synaptic to search for applications,  sux is just a wrapper around su to run an x11 application as root.

Ok I thought maybe sux was included with su. I didn't know it was a separate application.

aaro wrote:

For root acces to graphical apps just use gksu <graphical-app> and again is the root password what you type.

You can also do gksudo and instead use your password.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Statler Default Users Setup.

FiniteStateMachine wrote:

Ok, well now I am confused. It seems like sudo and root/su do the exact same job... Is there some primary difference i'm missing?


sudo just gives root permission for the one command although there is also a time element depending on how it is set up, open a terminal and put

 man sudo  

for all the info you will ever need.

Re: Statler Default Users Setup.

yes i forgot su lasted until you closed the terminal.
I guess su is useful if you have a lot of root commands you want to make.

just call me...
~FSM~

Re: Statler Default Users Setup.

Thats the point. Instead of logout/login, just open a terminal, run su, run your root tasks, and exit.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Statler Default Users Setup.

sudo is great for multi-user systems. For example you can edit sudoers so your kid can install games with Synaptic or mount external drives, without giving him full access to edit system config files or mess with anything in your /home.

The problem with a separate root user on a multi-user system is there's no way to distinguish between Dick-being-root and Jane-being-root.

On a single-user, low-security system it's hardly a big deal. I switch back and forth between sudo (#!) and root (CentOS) all the time. Any alleged security benefit of one over the other is largely placebo effect, given that you can easily boot into recovery mode (as we recently discussed in another thread).

Re: Statler Default Users Setup.

Always a handy page: http://oreilly.com/catalog/debian/chapt … 07_01.html (Configuring and Administering Linux)

Using CrunchBang 10 “Statler” Alpha 2

Re: Statler Default Users Setup.

snowpine wrote:

sudo is great for multi-user systems. For example you can edit sudoers so your kid can install games with Synaptic or mount external drives, without giving him full access to edit system config files or mess with anything in your /home.

I don't know much about sudoers but if someone has root access to synaptic or external drives I would have thought there was plenty of scope for irreparably   damaging a system.

snowpine wrote:

The problem with a separate root user on a multi-user system is there's no way to distinguish between Dick-being-root and Jane-being-root.

There is only one root on any multi user system, that is the whole point.


snowpine wrote:

Any alleged security benefit of one over the other is largely placebo effect given that you can easily boot into recovery mode (as we recently discussed in another thread).

Recovery mode as far as I understand it just allows various editing options to find a kernel to boot and will then boot into a login, it doesn't bypass the login.

Re: Statler Default Users Setup.

anonymous wrote:
aaro wrote:

For root acces to graphical apps just use gksu <graphical-app> and again is the root password what you type.

You can also do gksudo and instead use your password.

You made me doubt on this but not, in a default debian install, if you do gksudo <app> and give your normal user password, it shows an access denied message. The only way to do administrative tasks is with gksu (for graphical apps) and su (for non-graphical) and the root password, what i think is the logic/sane as default. I suppose you could change that with the sudoers list but i haven't messed with that, i'm already accustomed to the root password.

Last edited by aaro (2010-08-17 19:07:34)

aka xylox at irc
aka aaro2011 at Deviantart

Re: Statler Default Users Setup.

I'm ambivalent about sudo or not sudo but I like root setup during installation. Mint has a curious behaviour of setting up the user during installation as a user with sudo and also the root account with the same password. It mimics the behaviour I would normally setup on my personal systems but I'm not so sure that it should be forced upon someone without a choice. I assume that many would prefer a better security model of a different password for root. Then again, changing the root password after installation is a fairly simple process for those with higher security needs.

Re: Statler Default Users Setup.

aaro wrote:
anonymous wrote:
aaro wrote:

For root acces to graphical apps just use gksu <graphical-app> and again is the root password what you type.

You can also do gksudo and instead use your password.

You made me doubt on this but not, in a default debian install, if you do gksudo <app> and give your normal user password, it shows an access denied message.

I keep forgetting Debian likes to be different. gksudo uses the user password on Ubuntu (last I tried it) and Arch lets you change which password it accepts.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Statler Default Users Setup.

anonymous wrote:
aaro wrote:
anonymous wrote:

You can also do gksudo and instead use your password.

You made me doubt on this but not, in a default debian install, if you do gksudo <app> and give your normal user password, it shows an access denied message.

I keep forgetting Debian likes to be different. gksudo uses the user password on Ubuntu (last I tried it) and Arch lets you change which password it accepts.

I THINK you can change the default behavior by changing the alternative for 'libgksu-gconf-defaults'.

a.

Re: Statler Default Users Setup.

anonymous wrote:

I keep forgetting Debian likes to be different..

Debian is the parent, it is the children who are different