LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-10-2005, 12:24 PM   #1
CJ_Grobler
LQ Newbie
 
Registered: May 2005
Location: JHB, South Africa
Posts: 7

Rep: Reputation: 0
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.
 
Old 06-10-2005, 12:50 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
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.
 
Old 06-10-2005, 01:00 PM   #3
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
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.
 
Old 06-10-2005, 01:10 PM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
reinstall
 
Old 06-10-2005, 09:25 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 06-13-2005, 12:47 AM   #6
CJ_Grobler
LQ Newbie
 
Registered: May 2005
Location: JHB, South Africa
Posts: 7

Original Poster
Rep: Reputation: 0
thanx to all,

ill be sure try everything.
 
Old 06-13-2005, 12:52 PM   #7
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Yes, and post what works and what doesn't.

Thanks,

--Abid Kazmi
 
Old 06-13-2005, 09:35 PM   #8
slackwarebilly
Member
 
Registered: Jun 2005
Distribution: !<:Slackware:>!
Posts: 99

Rep: Reputation: 15
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 ><>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
superuser terminal Nic-MDKman Linux - General 8 02-06-2009 06:24 PM
Reboot: must be superuser akudewan Slackware 8 12-03-2004 12:30 AM
Superuser for Mount? Jskill007 Slackware 5 08-29-2004 10:53 PM
how to add a new superuser? zhebincong Linux - Newbie 11 06-23-2004 03:24 AM
superuser snu *BSD 5 07-22-2003 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:30 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