Re: Permission Problem
- From: russbucket <russbucket@xxxxxxx>
- Date: Wed, 19 Dec 2007 06:24:43 -0800
birre wrote:
On 2007-12-17 19:58, russbucket wrote:I'll try everything you suggest. I know its not a multiple user issue since
SuSE 10.2. 2.6.18.8-0.7-bigsmp #1 SMP
I have been trying to get my floppy drive to allow user to read/write it.
Only way to mount is as root, then user cannot read/write. Also have a
new scandisk usb cruzer 8.2 mb drive that has the same issues.
I know the mount command is limited to root. I am a member of the group
floppy and disk.
My present permissions for the floppy are: (Deinstalled the usb drive
after trying a ~/mnt/directory. It showed up but I could not read or
write it. I put an entry in FSTAB and when root mounted it it showed in
mtab).
ls -l /dev/fd0
brw-rw----+ 1 root disk
ls -l /media
drwxr-xr-x 2 root root
FSTAB entry:
/dev/fd0 /media/floppy auto noauto,user,sync
0 0
Is there any actual document showing correct way to do this? I found
several on the web but they always fail at the point where they say to
mount the drive.
I am new at the file permission stuff. my 10.2 floppy setup was working
until I had a disk failure and on reinstall the kde update (3.5.8, before
I had 3.5.5 installed) b was applied.
Thanks in advance.
If you look carefully on that permission, you can see it has a +
brw-rw----+
_
That + say there is ACL permissions added.
List them with getfacl /dev/fd0
Devices as floppy and USB/firewire media is always mounted by root, so the
system make sure they are mounted with noexec and nosetuid to root,
otherwise anyone can plugin a media with a binary that exec as root.
Your fstab entry is wrong, you don't need it, removable media is mounted
by
itself as /media/<media label> or if there is no label as
/media/<type>[<n>]
Suse will add ACL's for users that login to a KDE/Gnome session.
You shall NOT be a member of the group disk.
If you still have problems, find the real reason. The most common is
multiple user sessions, so the other user has it mounted.
You can also expect problem with devices like audio and media if the same
user has 2 desktops running, and then logout one of them, where the ACL's
for that user will be removed while he/she still have one session open.
Many things can go wrong, but starting to fix it before understanding how
it should work will only mess it up more.
Use the commands "mount,dmesg,df,lsof,fdisk" and figure out why the device
fail to auto mount before fixing it.
(mount without args, just to check if it's mounted already)
Do not avoid using YaST2 , it will help you a lot.
/bb
I'm the only user on this system.
Thanks for the response.
--
Russ
Registered Linux user #441463
.
- References:
- Permission Problem
- From: russbucket
- Re: Permission Problem
- From: birre
- Permission Problem
- Prev by Date: Re: setup up proxy on suse 10.2
- Next by Date: smpppd problem
- Previous by thread: Re: Permission Problem
- Next by thread: SuSE 10.3 No Sound
- Index(es):
Relevant Pages
|