Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
01-22-2007, 09:13 PM
|
#1
|
Member
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106
Rep:
|
umount permission
ok, when i connect my pendrive to slackware, it mounts is automatically, now i want it so that any normal user can unmount it, pls tell mw how to do this
|
|
|
01-22-2007, 11:08 PM
|
#2
|
Member
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235
Rep:
|
Close the directory and right click the device icon > unmount.
|
|
|
01-23-2007, 03:11 AM
|
#3
|
Member
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106
Original Poster
Rep:
|
I need the unmount command to work
|
|
|
01-23-2007, 03:28 AM
|
#4
|
Member
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301
Rep:
|
try the umount command.
in /etc/fstab try changing this line:
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
to:
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
If that doesnt work try:
man fstab
man mount
man umount
man chmod
man chown
links www.google.com # enter "linux change device permissions cdrom" in the search box.
Last edited by skog; 01-23-2007 at 03:30 AM.
|
|
|
01-23-2007, 04:18 AM
|
#5
|
Member
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106
Original Poster
Rep:
|
yeah but it's not the cdrom, i want the pendrive thing
|
|
|
01-23-2007, 05:33 AM
|
#6
|
Member
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235
Rep:
|
I have had similar problems with umount from /media.
I fix this problem by mounting on a seperate directory and nominating users in a pendrive entry in /etc/fstab. That way umount is no problem.
Last edited by The_Outlander; 01-23-2007 at 06:26 PM.
|
|
|
01-23-2007, 10:13 AM
|
#7
|
Member
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106
Original Poster
Rep:
|
you are not getting my point, slackware automatically mounts the volume in /media/<name>
I want it so that a normal user can umount this thing using the unmount command.
For example if I insert my kingston data traveller, it mounts it in /media/KINGSTON, now I have to login as root to unmount this thing, but a normal user should be able to unmount his/her pen drive and go.
Last edited by kniwor; 01-23-2007 at 10:19 AM.
|
|
|
01-23-2007, 06:27 PM
|
#8
|
Member
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235
Rep:
|
I take your point. I have edited my previous post. Hope it make more sense.
|
|
|
01-23-2007, 11:31 PM
|
#9
|
Member
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106
Original Poster
Rep:
|
Quote:
Originally Posted by The_Outlander
I fix this problem by mounting on a seperate directory and nominating users in a pendrive entry in /etc/fstab. That way umount is no problem.
|
ok, help with this here, how do i do this.
for now what i've done is added an entry in fstab, now it does not mount the pendrive automatically, dunno why, it gives message "cant mount device" and now a user has to mount the device, and also unmount it, I created 2 text files that can do mounting and unmounting, and kept them in /usr/bin, now users just have to run a command to mount, and a command to unmount.
|
|
|
01-24-2007, 04:35 AM
|
#10
|
Member
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235
Rep:
|
It seems to be working, although manually. To acheive an automatic mount umount in Slackware will require some research. Personally I have never bothered to work it out, satisfied with mount umount in a terminal or right click the device icon and select mount or umount as required. In any case the device seems to need an entry in fstab with users nominated rather than owner which is the slackware default and means root.
|
|
|
All times are GMT -5. The time now is 07:08 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
|
|