Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-31-2001, 07:56 PM   #1
LQ Newbie
Registered: Jul 2001
Posts: 2

Rep: Reputation: 0
Question su / root / linuxconf / shutdown / bastille

Hi! I'm kinda new to unixes and I was wondering if you guys could help me out. I'm sure it's a pretty dumb question, but I can't seem to be able to figure it out.

Is there a way to run programs like linuxconf without logging as root? Ie. if I log on as a regular user then su to get to root, I can't run stuff like linuxconf, shutdown... Is there a way to run them without exiting to the first logging prompt and reloging in as root?

The reason I ask is that I recently installed Bastille-Linux ( on top of RH7.1 and checked the option to restrict the root login (can't log as root directly, must log as regular user then su). So now I have no idea how to run the stuff mentionned above and I'm kinda stuck.

Any help would be appreciated.

Old 08-01-2001, 06:55 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
but.... if you su to root, then you CAN run shutdown and so forth... can't you???

I'm running rh71 too, and i can use shutdown straight from a user prompt. Check the permissions of the files...

[root@simon chris]# ls -l /sbin/shutdown
-rwxr-xr-x 1 root root 14396 Apr 4 13:06 /sbin/shutdown
[root@simon chris]#

I guess you could make other programs like linuxconf run by fiddling with the suid bits of various files, but i really can never manage to make those work...

but then if you've configured bastille too secruely, then you may well have locked yourself out! You can always boot into single user mode and change things that way tho. bootdisk or whatever

Old 08-01-2001, 07:20 AM   #3
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
would be a contradiction to first tighten security with Bastille & then setting SUID or perms on shutdown, IMO...
why dont u use sudo? with sudo u grant a regular user to use system tools provided they got the pass for the account. its flexible, preconfigured args are possible as well so ppl could reboot like "sudo shutdown -r now" but not "sudo shutdown -h now".
Old 08-04-2001, 04:28 AM   #4
LQ Newbie
Registered: Jul 2001
Distribution: MD7.2
Posts: 17

Rep: Reputation: 0
To access the root console and roots Konqueror whilst logged in as a user.

For roots console:
1. press Alt + F2
2. type 'kdesu konsole'
3. enter the root password.
4. you now have the root conslole and can shutdown or do other.

For quick shortcut to the desktop:

Go to 'K / Applications / Shells/ ' and drag the icon to the Desktop and create the link for roots 'su' conslole.

For roots Konqueror:
1. press Alt + F2
2. type 'kdesu konqueror'
3. enter the root password.
4. you can now use roots konqueror.
Old 08-04-2001, 07:06 AM   #5
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Try su -
That changes your path to /root/ and things should work.


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
shutdown with a not root user krusty_lab AIX 2 10-18-2005 07:07 PM
only root can shutdown rgiggs Slackware 9 07-04-2004 09:52 PM
Can't shutdown as any user but root? JustinCoyan Slackware 4 06-10-2004 02:05 PM
do i have to be root to shutdown slacker?? rymdninja Slackware 4 09-26-2003 11:13 AM
Shutdown when not root? rje_NC Slackware 7 04-18-2003 12:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration