LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Superuser (https://www.linuxquestions.org/questions/linux-newbie-8/superuser-332241/)

CJ_Grobler 06-10-2005 01:24 PM

Superuser
 
Hi

How can I give my normal user login superuser permissions?

Another quick one:

What I did last night was logging into to root with su and

chmod 777 -R /usr/themes

but accidentally entered

chmod 777 -R /

now I get an error when using su

"Cannot create group, permission denied"

how can I fix this?

Tuttle 06-10-2005 01:50 PM

Re: Superuser
 
Quote:

Originally posted by CJ_Grobler
Hi

How can I give my normal user login superuser permissions?

Another quick one:

What I did last night was logging into to root with su and

chmod 777 -R /usr/themes

but accidentally entered

chmod 777 -R /

now I get an error when using su

"Cannot create group, permission denied"

how can I fix this?

1. use the "sudo" utility: set up sudo using visudo, then run an application like this:
Code:

sudo [application name]
2. reinstall.

securehack 06-10-2005 02:00 PM

Well there is an easier way although I am not too sure abuot the permissions:

When you typed in:
chmod 777 -R /

Type:
chmod 700 / (<--I'm not sure what the root perm's are sorry)

You should now type in:
chmod 777 -R /usr/themes

It should undo your last command and accomplish what you are trying to do.

--Abid Kazmi

Tuttle 06-10-2005 02:10 PM

reinstall;)

btmiller 06-10-2005 10:25 PM

BTW, that typo you gave is exactly why you shouldn't make your normal user a superuser. One little typo can hose your system as the superuser, but not as a normal user (you can still, of course, hose your data). As others have suggested, use sudo to gain root priviliges. As for your problem, if you're using a distro with a package manager that track permissions, you can "fix" the perms to everything by basically reinstallinmg all the RPMs. An easy way to do this is to use your boot CD and do an upgrade, which willreinstall all the RPMs. You may still lose some customizations though.

CJ_Grobler 06-13-2005 01:47 AM

thanx to all,

ill be sure try everything.

securehack 06-13-2005 01:52 PM

Yes, and post what works and what doesn't.

Thanks,

--Abid Kazmi

slackwarebilly 06-13-2005 10:35 PM

I login as root and have never jacked up my system. I dunno if this will work for you, but you could try it, I guess. Sorry if this doesn't help.

sincerely,

slackwarebilly ><> :(


All times are GMT -5. The time now is 08:19 PM.