Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user access to /dev/sda* help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
ckenda1
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2004
Posts: 126

PostPosted: Sat Sep 03, 2005 2:15 am    Post subject: user access to /dev/sda* help! Reply with quote

Hello Everyone.

I have a FujiPix S5100 Camera and it works great. When I plug it into the computer via USB it connects and its memory card is listed as /dev/sda1. I have edited fstab to mount /dev/sda1 to /mnt/camera. I also checked the UDEV rules and noticed that to access sd* you need to be in the disk group. So I added my user to the disk group.

Even after doing all this my user still cannot access /mnt/camera, just root can. Am I missing something? Any help would be much appreciated! TIA!

-ckenda1
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sat Sep 03, 2005 3:22 am    Post subject: Reply with quote

Hi.

How is your memory card mounted? Please post the output of the following after mounting the card.
Code:
# fdisk -l

If you have parted installed do the next line, if not do the other one.
Code:
# parted -s /dev/sda print
# mount

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
fn42
n00b
n00b


Joined: 03 Sep 2005
Posts: 1

PostPosted: Sat Sep 03, 2005 3:54 pm    Post subject: Reply with quote

What does your fstab entry look like? Does it have the 'user' option?

E.g.:

/dev/sda1 /mnt/camera auto user 0 0


The 'user' mount option allows users to mount the drive. From `man mount`:

(iii) Normally, only the superuser can mount file systems. However,
when fstab contains the user option on a line, then anybody can mount
the corresponding system.

Thus, given a line
/dev/cdrom /cd iso9660 ro,user,noauto,unhide
any user can mount the iso9660 file system found on his CDROM using the
command
mount /dev/cdrom
or
mount /cd
For more details, see fstab(5). Only the user that mounted a filesys-
tem can unmount it again. If any user should be able to unmount, then
use users instead of user in the fstab line. The owner option is simi-
lar to the user option, with the restriction that the user must be the
owner of the special file. This may be useful e.g. for /dev/fd if a
login script makes the console user owner of this device.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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