View previous topic :: View next topic |
Author |
Message |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Wed Oct 20, 2004 11:49 pm Post subject: can't mount floppy as user [solved] |
|
|
I try not to do mundain tasks as root but it gets harder by the day.
It was recently deemed a security risk to let user accounts access to CD burning.
Now it seems I cant mount or even read a floppy from a user account.
Code: | prof@linbox ~/wine_root/InvoiceMan $ mount /mnt/floppy
mount: only root can mount /dev/fd0 on /mnt/floppy
prof@linbox ~/wine_root/InvoiceMan $ ls !$
ls /mnt/floppy
invman.exe
prof@linbox ~/wine_root/InvoiceMan $ cp !$/inv* .
cp /mnt/floppy/inv* .
cp: cannot stat `/mnt/floppy/invman.exe': Permission denied
prof@linbox ~/wine_root/InvoiceMan $ ls !:1
ls /mnt/floppy/inv*
ls: /mnt/floppy/invman.exe: Permission denied
|
however:
Code: | 1 drwxr--r-- 2 root root 7168 Jan 1 1970 floppy
|
I hope I am just making an elementary error because otherwise this situation is getting rediculous.
If all a user account can do is ls ~ , what's the point ?
Thanks for any help. Gentree.  _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Last edited by Gentree on Sat Oct 23, 2004 10:38 am; edited 2 times in total |
|
Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Wed Oct 20, 2004 11:50 pm Post subject: |
|
|
What does the relevant line in your /etc/fstab say? Do you have 'users' in the options part? _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Oct 21, 2004 12:29 am Post subject: |
|
|
Thanks,
well I added that , umount then remount the floppy but it does not seems to change anything I was doing.
Code: | prof@linbox ~/wine_root/InvoiceMan $ ls /mnt/floppy/*
ls: /mnt/floppy/invman.exe: Permission denied
|
root has no problems :
Code: | -bash-3.00#ls !$/*
ls /mnt/floppy/*
/mnt/floppy/invman.exe
|
I take it from your reply that this is not normal , so at least some good news, now to see where I am going wrong.
Thanks again.  _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
BlockFin Tux's lil' helper

Joined: 05 Jul 2002 Posts: 107
|
Posted: Thu Oct 21, 2004 4:41 am Post subject: |
|
|
I have "user" (not "users") in my fstab, and I can read/write floppies all right. |
|
Back to top |
|
 |
codergeek42 Bodhisattva

Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Thu Oct 21, 2004 5:33 am Post subject: |
|
|
If it helps, here's my relvant /etc/fstab line: Code: | /dev/fd0 /mnt/floppy auto noauto,user 0 0 |
_________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Oct 21, 2004 8:20 am Post subject: |
|
|
Thanks for the replies.
I had 'user' on my cdrom lines but thought it was an error after the 'users' suggestion , dont know if its the same. Anyway all are set to 'user' now but the pb remains.
Code: | -bash-3.00#su prof
prof@linbox /root $ ls /mnt/floppy
invman~1.exe invman~1.zip
prof@linbox /root $ ls /mnt/floppy/*
ls: /mnt/floppy/invman~1.exe: Permission denied
ls: /mnt/floppy/invman~1.zip: Permission denied
prof@linbox /root $ mount
/dev/hdc7 on / type reiserfs (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
/dev/hda5 on /boot type ext3 (rw,noatime)
/dev/hdc12 on /usr/portage type reiser4 (rw,noatime)
/dev/hdc14 on /home type reiser4 (rw,noatime)
/dev/hdc15 on /cdimg type reiser4 (rw,noatime)
/dev/hdc16 on /iso type reiserfs (rw,noatime)
/dev/hdc17 on /rar type reiser4 (rw,noatime)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/fd0 on /mnt/floppy type msdos (rw,noexec,nosuid,nodev,noatime)
prof@linbox /root $ ls -ail /mnt/floppy
ls: /mnt/floppy/.: Permission denied
ls: /mnt/floppy/..: Permission denied
ls: /mnt/floppy/invman~1.exe: Permission denied
ls: /mnt/floppy/invman~1.zip: Permission denied
total 0
|
semms my user can ls the floppy but not files or directories on it.
Does that make sense to someone?
TIA  _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
G.N.A. Tux's lil' helper


Joined: 15 Mar 2004 Posts: 81
|
Posted: Thu Oct 21, 2004 7:13 pm Post subject: |
|
|
What are the access permissions on those files?
GNA |
|
Back to top |
|
 |
chiasmus1 n00b

Joined: 18 Jan 2004 Posts: 17 Location: Laie, Hawaii, USA
|
Posted: Thu Oct 21, 2004 9:55 pm Post subject: users |
|
|
I have used both user and users. I am not sure the exact difference, but I believe that user is a little bit of a mix of owner and users. owner means that you have to be at the machine to mount. I believe user means that the device needs to be either unmounted or you need to have mounted it to change it. I think that users means that anyone can mount or unmount it.
You might want to check the permissions on the /mnt/floppy directory to see if users on the machine can access it.
You need execute permissions on directories to read the contents. (755) |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Fri Oct 22, 2004 1:44 am Post subject: |
|
|
Quote: | You need execute permissions on directories to read the contents. (755) |
Do I really! How odd , I wont even ask why.
In any case it wont take a change. As root ...
Code: | chmod 755 /mnt/floppy
-bash-3.00#!l
ls -ail /mnt/floppy
total 949
1 drwxr--r-- 2 root root 7168 Jan 1 1970 .
3557 drwxr-xr-x 12 root root 312 Sep 13 23:14 ..
10 -rwxr--r-- 1 root root 482304 Oct 21 10:05 invman~1.exe
11 -rwxr--r-- 1 root root 482304 Oct 22 03:26 invman~2.exe
|
from /etc/fstab :
Code: | /dev/fd0 /mnt/floppy vfat noauto,noatime,users
|
Thanks to all...  _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Oct 23, 2004 10:36 am Post subject: |
|
|
This works, thanks to all.
Code: | /dev/fd0 /mnt/floppy vfat,auto noauto,noatime,users 0 0 |  _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
|