Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-21-2002, 01:00 PM   #1
Registered: Aug 2001
Location: dry land
Distribution: debian and slackware
Posts: 30

Rep: Reputation: 15
allowing non-root users to mount drives and shutdown

i have slackware 8.1 running on a laptop and it is driving me mad having to su root every time i want to mount a drive or shudown, does anyone know how i can allow non-root to do the above tasks.


Old 09-21-2002, 01:19 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
For mounting, you will need to adjust your entrie(s) in fstab. Something like:
/dev/hdxx /mnt/files ext2 users,noauto,rw 0 0

Could be what you need, but you would obviously need to tailor it, and add/remove things in the options section. man mount and man fstab will give you a better idea of what's going on there.

As for shutting down, I just do a 3 fingered salute. That does not require root priviledges. Of course if you want to shutdown and halt, you can still do the 3 finger, but need to adjust in /etc/inittab what the entry says for the 3 fingered. Make it -h rather than -r for halt rather than reboot respectively.

Old 09-21-2002, 01:43 PM   #3
Registered: Aug 2001
Location: dry land
Distribution: debian and slackware
Posts: 30

Original Poster
Rep: Reputation: 15
thanks! i can now mount drives as a none root user but when i ctrl-alt-del nothing happens , the only reasons i can think of for it not working is the fact that im in X when i do it or that because my laptop has less keys than a real keyboard the delete key im using is sending the wrong signal.


Old 09-21-2002, 07:35 PM   #4
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
For shutdown I used sudo to allow selected users to shutdown the computer.

Read the manpages on sudo, sudoers, and visudo.

Sudo explains about what sudo is and how it works.

Sudoers tells how the file is built and has samples of entries you need to make it work.

Visudo is the program used to edit the sudoers file.


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
Allowing users to shutdown - Slack 10.1 amwink Slackware 31 08-22-2006 12:59 PM
Allowing users to shutdown the system LinuxSeeker Linux - General 3 11-11-2004 10:18 AM
Allowing other users than root to mount drives DarkPhoenix Linux - Newbie 6 06-25-2004 07:28 AM
Allowing *some* users to mount ugenn Linux - General 8 03-01-2004 11:48 PM
Allowing all users to use 'shutdown' command mrde50garfield Mandriva 5 01-08-2004 10:58 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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