Page 1 of 1

How do I give root privileges to a user in Linux?

Posted: Thu Aug 12, 2004 5:05 pm
by Chris Corbyn
Hi,

Just installed SuSE 9.1 and I'm totally new to linux but I was wondering how I could give my main user root privileges. Basically, I don't want to have to log in as root everytime I want to install packages or go into the root folder.

Also, I can view my windows partition but it's read only and even logged in as root it won't let me uncheck the read-only box in the KDE interface. Can I do this from console?

Cheers :-)

Posted: Thu Aug 12, 2004 5:07 pm
by markl999
Use sudo or fakeroot

Posted: Fri Aug 13, 2004 4:57 am
by Pyrite
If your Windows partition is using NTFS, you can and should forget about being able to write to it. IF it is FAT32, you are fine.

Posted: Fri Aug 13, 2004 12:06 pm
by Chris Corbyn
So I can't just add root privileges from the command line? I need to have 3rd party software installed?

(I'll get sudo if that's what I need.)

Thanks

Posted: Fri Aug 13, 2004 12:35 pm
by ody
you can add yourself to the root group, which will give you a degree of "rootness", however its pointless, the root account is there for a reason, when the reason arrises.

Posted: Fri Aug 13, 2004 4:40 pm
by d_d

Posted: Fri Aug 13, 2004 9:30 pm
by Pyrite
Yes, if you don't know "su", then I can see your pain, but "su"'ing over to root isn't bad and takes little time.

As a normal user, type "su -" will ask you for root's password and break you out of your shell.

Then "exit" will return you to your user where you left off.

Posted: Mon Aug 16, 2004 4:53 pm
by ody
Pyrite wrote:Yes, if you don't know "su", then I can see your pain, but "su"'ing over to root isn't bad and takes little time.

As a normal user, type "root -" will ask you for root's password and break you out of your shell.

Then "exit" will return you to your user where you left off.
"root -" ??

I assume you mean "su -", also ctrl+d will log you out; which is quicker than typing exit.

Posted: Mon Aug 16, 2004 6:11 pm
by Pyrite
You're right I did mean su - haha, fixed that, and ctrl+D is not faster on my laptop. In fact on any computer I can type exit faster than hitting a key sequence. Who cares anyways ...

Posted: Mon Aug 16, 2004 6:39 pm
by redhair
You just need to get used to using the root password stuff.
It is a security feature which was not invented for no reason.
Imagine you go to the store....do you leave your frontdoor open "because when you get back, you got your hands full"?

Also, once you installed all your desirable software....you don't have to use the root pass anymore...just work through it ;-)

ps: With Yast you can install a bunch of software at the same time, and just enter the rootpass once!

Posted: Tue Aug 17, 2004 5:45 pm
by Chris Corbyn
Thanks that helps me alot :-)

Posted: Wed Aug 18, 2004 2:34 am
by ody
Pyrite wrote:You're right I did mean su - haha, fixed that, and ctrl+D is not faster on my laptop. In fact on any computer I can type exit faster than hitting a key sequence. Who cares anyways ...
What kind of hand malformations do you have?

One hand two fingers or both hands, 2 fingers on one and 3 on the other to logout... hrmm I'm willing to wager my gf you can do it quicker my way. :roll:

Posted: Thu Aug 19, 2004 7:55 pm
by Pyrite
Is she a redhead? :D

Posted: Fri Aug 20, 2004 6:26 am
by ody
nah, I've been thinking about trading her in though..