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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-10-2005, 12:24 PM
|
#1
|
LQ Newbie
Registered: May 2005
Location: JHB, South Africa
Posts: 7
Rep:
|
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?
Last edited by CJ_Grobler; 06-10-2005 at 12:27 PM.
|
|
|
06-10-2005, 12:50 PM
|
#2
|
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291
Rep:
|
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.
|
|
|
06-10-2005, 01:00 PM
|
#3
|
Member
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425
Rep:
|
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
Last edited by securehack; 06-10-2005 at 01:01 PM.
|
|
|
06-10-2005, 01:10 PM
|
#4
|
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291
Rep:
|
reinstall
|
|
|
06-10-2005, 09:25 PM
|
#5
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
06-13-2005, 12:47 AM
|
#6
|
LQ Newbie
Registered: May 2005
Location: JHB, South Africa
Posts: 7
Original Poster
Rep:
|
thanx to all,
ill be sure try everything.
|
|
|
06-13-2005, 12:52 PM
|
#7
|
Member
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425
Rep:
|
Yes, and post what works and what doesn't.
Thanks,
--Abid Kazmi
|
|
|
06-13-2005, 09:35 PM
|
#8
|
Member
Registered: Jun 2005
Distribution: !<:Slackware:>!
Posts: 99
Rep:
|
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 02:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|