LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2007, 09:13 PM   #1
kniwor
Member
 
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Rep: Reputation: 15
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
 
Old 01-22-2007, 11:08 PM   #2
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
Close the directory and right click the device icon > unmount.
 
Old 01-23-2007, 03:11 AM   #3
kniwor
Member
 
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Original Poster
Rep: Reputation: 15
I need the unmount command to work
 
Old 01-23-2007, 03:28 AM   #4
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
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.
 
Old 01-23-2007, 04:18 AM   #5
kniwor
Member
 
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Original Poster
Rep: Reputation: 15
yeah but it's not the cdrom, i want the pendrive thing
 
Old 01-23-2007, 05:33 AM   #6
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
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.
 
Old 01-23-2007, 10:13 AM   #7
kniwor
Member
 
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Original Poster
Rep: Reputation: 15
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.
 
Old 01-23-2007, 06:27 PM   #8
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
I take your point. I have edited my previous post. Hope it make more sense.
 
Old 01-23-2007, 11:31 PM   #9
kniwor
Member
 
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106

Original Poster
Rep: Reputation: 15
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.
 
Old 01-24-2007, 04:35 AM   #10
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
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.
 
  


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
cant umount binary_0011 Linux - Newbie 6 04-24-2006 04:20 AM
why cannot umount ? whepin Linux - General 3 02-07-2006 11:42 AM
how to umount / taiwf Linux - General 13 08-05-2005 01:40 AM
umount cd in use provkitir Linux - Newbie 3 01-29-2005 08:09 PM
is it ok to use umount -l ? ewto Linux - General 5 10-21-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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