Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
only root can pmount
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
HubyRod
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 92

PostPosted: Tue Mar 28, 2006 10:41 pm    Post subject: only root can pmount Reply with quote

Code:
$ ls -l `which pmount`
-rws--x---  1 root plugdev 29788 Mar 17 18:50 /usr/bin/pmount
$ groups
adm wheel floppy audio cdrom dialout tape video users games plugdev
$ pmount /mnt/cdrom
mount: only ROOT can mount /dev/cdrom on /mnt/cdrom


I just don't get it ... does one of you have any clue ??
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Mar 29, 2006 2:14 am    Post subject: Reply with quote

Do you have an entry for the cdrom in /etc/fstab? The issue may be an option there and not pmount.

Is it just the cdrom, or have you tried other devices with pmount? (USB stick, external HD, anything)
Back to top
View user's profile Send private message
HubyRod
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 92

PostPosted: Wed Mar 29, 2006 9:30 am    Post subject: Reply with quote

Yes, I have an entry for the cdrom in my /etc/fstab, do you think it might be the problem ?
I haven't tried with any USB device yet, but I will and let you know what it says.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Mar 29, 2006 3:20 pm    Post subject: Reply with quote

HubyRod wrote:
Yes, I have an entry for the cdrom in my /etc/fstab, do you think it might be the problem ?
I haven't tried with any USB device yet, but I will and let you know what it says.

Pleas post the line pertaining to the cdrom from /etc/fstab.

pmount will respect the options there, so it could matter.
Back to top
View user's profile Send private message
HubyRod
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 92

PostPosted: Wed Mar 29, 2006 3:23 pm    Post subject: Reply with quote

Code:
/dev/hda1        /boot   ext2    defaults                1 2
/dev/hda2        none            swap            sw              0 0
/dev/hda3        /       ext3    defaults                0 1
/dev/hdb1       /mnt/hdb1       ext3    defaults        0 0
none        /proc     proc    defaults          0 0
none        /dev/shm  tmpfs   defaults          0 0
/dev/cdrom      /mnt/cdrom      iso9660 defaults        0 0
/dev/cdrw       /mnt/cdrw       iso9660 defaults        0 0


here it is ...
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Mar 29, 2006 4:14 pm    Post subject: Reply with quote

The default option implies nouser.
Try
Code:
/dev/cdrom      /mnt/cdrom      auto       noauto,rw,nodev,nosuid,noexec        0 0
Back to top
View user's profile Send private message
k1ll1nt1m3
Apprentice
Apprentice


Joined: 02 Jun 2004
Posts: 196

PostPosted: Tue Apr 04, 2006 11:54 pm    Post subject: Reply with quote

I just reinstalled after a new MB. I cant get users to be able to mount cdroms either. Only root can mount them. I tried your fstab options with no luck. Here are some of my configs. Thanks for any help.

fstab
Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT      /boot      ext2      noauto,noatime   1 2
#/dev/ROOT      /      ext3      noatime      0 1
#/dev/SWAP      none      swap      sw      0 0
#/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0


####SYSTEM####
/dev/sdc1      /boot      ext3      noauto,noatime         0 0
/dev/md2      /      ext3      noatime            0 1
/dev/md1      none      swap      sw            0 0
/dev/cdrom      /mnt/cdrom   iso9660      noauto,rw,nodev,nosuid,noexec   0 0
/dev/cdrom1      /mnt/cdrom1   iso9660      noauto,ro         0 0
/dev/md3      /mnt/movies_2   ext3      noauto,noatime,users      0 0
/dev/md4      /mnt/music   ext3      noauto,noatime,users      0 0
/dev/md5      /mnt/pics   ext3      noauto,noatime,users        0 0
/dev/md6      /mnt/docs   ext3      noauto,noatime,users        0 0
/dev/md7      /mnt/www   ext3      noauto,noatime,users        0 0
/dev/md8      /mnt/ftp   ext3      noauto,noatime,users      0 0
/dev/md9      /mnt/movies   ext3      noauto,noatime,users      0 0
/dev/sda1      /mnt/xp      vfat      noauto,noatime,users      0 0
/dev/sdb2      /mnt/programs   ext3      noauto,noatime,users      0 0
/dev/sdb3      /mnt/oss   ext3      noauto,noatime,users        0 0
/dev/sdb4      /mnt/fat32   vfat      noauto,noatime,users      0 0



# NOTE: The next line is critical for boot!
proc         /proc      proc      defaults   0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0


cdrom was root(group), thought I would see if users would work, no luck
Code:
ls -l /mnt
total 84
drwxrwxrwx  2 root users 4096 Apr  3 21:03 cdrom
drwxr-xr-x  2 root root  4096 Apr  1 07:12 cdrom1
drwxr-xr-x  2 root root  4096 Apr  2 16:56 docs
drwxr-xr-x  2 root root  4096 Apr  2 16:28 fat32
drwx------  2 root root  4096 Oct 19 16:12 floppy
drwxr-xr-x  2 root root  4096 Apr  2 19:04 ftp
drwxr-xr-x  2 root root  4096 Apr  2 16:27 md3
drwxr-xr-x  2 root root  4096 Apr  2 16:27 md4
drwxr-xr-x  2 root root  4096 Apr  2 16:27 md5
drwxr-xr-x  2 root root  4096 Apr  2 16:50 md6
drwxr-xr-x  2 root root  4096 Apr  2 16:50 md7
drwxr-xr-x  2 root root  4096 Apr  2 19:19 md8
drwxr-xr-x  2 root root  4096 Apr  2 19:19 md9
drwxr-xr-x  2 root root  4096 Apr  2 19:41 movies
drwxr-xr-x  2 root root  4096 Apr  2 16:56 movies_2
drwxr-xr-x  2 root root  4096 Apr  2 16:55 music
drwxr-xr-x  2 root root  4096 Apr  2 16:28 oss
drwxr-xr-x  2 root root  4096 Apr  2 16:55 pics
drwxr-xr-x  4 root root  4096 Feb 11 21:43 programs
drwxr-xr-x  2 root root  4096 Apr  2 16:56 www
drwxr-xr-x  2 root root  4096 Apr  2 16:28 xp


Code:
ls -l /dev/cd*
lrwxrwxrwx  1 root root      3 Apr  2 21:06 /dev/cdrom -> hda
lrwxrwxrwx  1 root root      3 Apr  2 21:06 /dev/cdrom1 -> hdb
lrwxrwxrwx  1 root root      3 Apr  2 21:06 /dev/cdrw -> hda
lrwxrwxrwx  1 root root      3 Apr  2 21:06 /dev/cdrw1 -> hdb
brw-rw----  1 root cdrom 24, 0 Oct 19 16:12 /dev/cdu535


Edit: Not sure how but its all working fine now.


Last edited by k1ll1nt1m3 on Thu Apr 13, 2006 11:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
HubyRod
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 92

PostPosted: Tue Apr 11, 2006 10:35 pm    Post subject: Reply with quote

Thank you, Headrush, it worked !!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum