LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-02-2005, 10:14 PM   #1
salahuddin_66
Member
 
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Rep: Reputation: 30
mount and umount problem


hello


yesterday while i was writing cd's in k3b when after write i open one file from cd with kaffeine and then kde can't umount the cdrom

then i logoff and try but did now work. So i give umount as root. aftert that users can't mount any thing

i wanna know ? is the******* default ****** permission of /bin/mount and /bin/umount

how i can do it with chmod or other that so that all the users can mount and umount my fstab is (should i move the user to users)

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda7       /               reiserfs notail          0       1
/dev/hda6       none            swap    sw              0       0
/dev/hdd        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hdc        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hda1       /media/c        vfat    rw,user,noauto  0       0
/dev/hda5       /media/d        vfat    rw,user,noauto  0       0
thanx
 
Old 05-02-2005, 10:40 PM   #2
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
The default ownership of mount and umount is by root.

If you are the only user, I see no reason not to change ownership and permissions of mount and umount if you really want to, but if you're running a network with more than one user I believe it would be a bad idea.

Another approach would be to set up sudo (see man sudo) so that you can temporarily do things as root, and then fall back into your normal, and safer, user mode after the actions are completed. That's what I generally do.

If you are the only user and want to be able to mount and umount as that normal user, you would do, as root (and assuming here your user name is salahuddin):

Code:
chown salahuddin:salahuddin /bin/mount
(and the same for umount)

then, still as root:

Code:
chmod u+rxw /bin/mount
(and the same for umount)

Sometimes a device is reported to still be in a busy state even when you're through with it, and refuses to unmount. In that case you can issue umount -l [device name] and successfully unmount it. The "l" stands for "lazy." (See man umount.)

I personally would not change the ownership or permissions on mount and umount, but would use sudo instead.
 
Old 05-03-2005, 05:11 AM   #3
salahuddin_66
Member
 
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Original Poster
Rep: Reputation: 30
ya now it is set to root

but still i can't mount any cdrom or other windows drive as user with kde and also

mount /media/c

mount /media/cdrom1 no permission

is there any soloution to enable it for user i have give the command but it is still not working

thanx

Last edited by salahuddin_66; 05-03-2005 at 05:13 AM.
 
Old 05-03-2005, 07:49 AM   #4
salahuddin_66
Member
 
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Original Poster
Rep: Reputation: 30
solve after give

chmod u+s /bin/umount

thanx to jonr and google
 
  


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
mount / umount problems d1l2w3 Linux - Hardware 6 03-14-2005 04:23 PM
mount/umount devit Linux - General 4 02-19-2004 12:37 PM
Mount/Umount Floppy problem - Urgent! moisvon Linux - Newbie 1 07-10-2003 03:10 PM
Serious mount/umount problems... Veratien Linux - Software 8 03-23-2003 05:05 PM
mount and umount wr3ck3d Linux - Newbie 4 12-14-2002 04:04 PM


All times are GMT -5. The time now is 10:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration