Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-13-2004, 05:14 AM   #1
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 34
Using 'eject' as normal user

Searching this board for 'normal user eject' or even 'eject' by itself yielded very little information so I figured I'd just post. If this has been asked and answered before I am sorry.

My system has a DVD-ROM and a CD-Writer in it. I have these lines in /etc/fstab:

/dev/cdrom       /mnt/cdrom       iso9660     user,noauto,ro    0   0
/dev/hdd         /mnt/writer      iso9660     user,noauto,ro    0   0
Normal users can mount & umount these drives just fine, but they cannot use the eject command:

eject: unable to open `/dev/hdb'
root can succesfully use the eject command for both drives. /usr/bin/eject is chmod 755. Why is the eject command not working for normal users and how can I enable it?
Old 03-13-2004, 07:53 AM   #2
LQ Newbie
Registered: Nov 2003
Distribution: slackware 9.1
Posts: 12

Rep: Reputation: 0 can enable it by editing your /etc/group file.
find a line that show disk::6:root,adm and add you normal user there.

disk::6:root,adm,username,another_username (change with appropriate user name)

this will require a logout and relogin again if you want to enable normal user to use the "eject" command..

hope this will help
Old 03-13-2004, 10:15 AM   #3
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 34
I wouldn't have thought of that... it works like a charm, thanks!


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
VCD does not eject even eject button pressed ic_torres Linux - Software 4 12-01-2005 05:40 PM
Can't eject iPod as normal user, but works as root FreeThinkerJim Linux - Hardware 3 11-18-2005 08:19 PM
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 07:25 PM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
normal user = super user jayakrishnan Linux - General 4 03-19-2002 09:58 AM > Forums > Linux Forums > Linux - Distributions > Slackware

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