Mailinglist Archive: opensuse-bugs (5410 mails)

< Previous Next >
[Bug 567854] New: Floppy mounts only as root; mdir, mcopy work only for root
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 1 Jan 2010 15:49:14 +0000
  • Message-id: <bug-567854-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=567854

http://bugzilla.novell.com/show_bug.cgi?id=567854#c0


Summary: Floppy mounts only as root; mdir, mcopy work only for
root
Classification: openSUSE
Product: openSUSE 11.2
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: alexander.koenig@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


Created an attachment (id=334698)
--> (http://bugzilla.novell.com/attachment.cgi?id=334698)
Hardware info

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.6)
Gecko/20091201 SUSE/3.5.6-1.1.1 Firefox/3.5.6

When I click on the floppy icon in the KDE4 menu (a floppy is in the drive) the
system mounts the floppy as root. The file manager Dolphin does not open, I get
an error message instead. For an unmounted floppy the tools mdir, mcopy, etc.
work only for the root user.

Reproducible: Always

Steps to Reproduce:
1.Insert a formatted floppy into the drive
2.Issue the command mdir on a shell
3.Click on the floppy icon in the KDE4 menu

Actual Results:
2. mdir
*mdir as normal user:

alexande@asterix:~> mdir
Can't open /dev/fd0: Keine Berechtigung
Cannot initialize 'A:'

*mdir as root:

alexande@asterix:~> su
Passwort:
asterix:/home/alexander # mdir
Volume in drive A has no label
Volume Serial Number is 2F70-69E0
Directory for A:/

autoexec bat 1142 1998-05-15 20:01
config sys 828 2003-11-16 13:13
setramd bat 881 1998-05-15 20:01
readme txt 16216 1998-05-15 20:01
findramd exe 6855 1998-05-15 20:01
ramdrive sys 12823 1998-05-15 20:01
aspi4dos sys 14386 1998-05-15 20:01
btcdrom sys 21971 1998-05-15 20:01
aspicd sys 29620 1998-05-15 20:01
btdosm sys 30955 1998-05-15 20:01
aspi2dos sys 35330 1998-05-15 20:01
aspi8dos sys 37564 1998-05-15 20:01
aspi8u2 sys 40792 1998-05-15 20:01
flashpt sys 64425 1998-05-15 20:01
extract exe 93242 1998-05-15 20:01
fdisk exe 64956 1998-05-15 20:01
drvspace bin 69079 1998-05-15 20:01
command com 96360 1998-05-15 20:01
himem sys 33447 1998-05-15 20:01
oakcdrom sys 41302 1998-05-15 20:01
ebd cab 276324 1998-05-15 20:01
display sys 17191 1998-05-15 20:01
country sys 30742 1998-05-15 20:01
ega cpi 58870 1998-05-15 20:01
mode com 29815 1998-05-15 20:01
keyboard sys 34566 1998-05-15 20:01
keyb com 20023 1998-05-15 20:01
27 files 1 179 705 bytes
47 616 bytes free

asterix:/home/alexander # exit
3.
* Floppy is mounted as root:

alexande@asterix:~> df -k
Dateisystem 1K‐Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/sda1 50403028 1185932 46656740 3% /
udev 2027632 336 2027296 1% /dev
/dev/sda3 329515992 13757216 299020252 5% /home
/dev/sdb5 50403028 202564 47640108 1% /tmp
/dev/sdb2 50403028 5825104 42017568 13% /usr
/dev/sdb3 50403028 399956 47442716 1% /var
/dev/sdb7 311363336 37104316 258442628 13% /video
/dev/sda2 100798068 62907204 32770548 66% /windows
/dev/fd0 1424 1377 47 97% /media/disk
alexande@asterix:~> ls -l /media/disk
insgesamt 1377
-rwxr-xr-x 1 root root 35330 15. Mai 1998 aspi2dos.sys
-rwxr-xr-x 1 root root 14386 15. Mai 1998 aspi4dos.sys
-rwxr-xr-x 1 root root 37564 15. Mai 1998 aspi8dos.sys
-rwxr-xr-x 1 root root 40792 15. Mai 1998 aspi8u2.sys
-rwxr-xr-x 1 root root 29620 15. Mai 1998 aspicd.sys
-rwxr-xr-x 1 root root 1142 15. Mai 1998 autoexec.bat
-rwxr-xr-x 1 root root 21971 15. Mai 1998 btcdrom.sys
-rwxr-xr-x 1 root root 30955 15. Mai 1998 btdosm.sys
-rwxr-xr-x 1 root root 96360 15. Mai 1998 command.com
-rwxr-xr-x 1 root root 828 16. Nov 2003 config.sys
-rwxr-xr-x 1 root root 30742 15. Mai 1998 country.sys
-rwxr-xr-x 1 root root 17191 15. Mai 1998 display.sys
-rwxr-xr-x 1 root root 69079 15. Mai 1998 drvspace.bin
-rwxr-xr-x 1 root root 276324 15. Mai 1998 ebd.cab
-r-xr-xr-x 1 root root 0 16. Nov 2003 ebd.sys
-rwxr-xr-x 1 root root 58870 15. Mai 1998 ega.cpi
-rwxr-xr-x 1 root root 93242 15. Mai 1998 extract.exe
-rwxr-xr-x 1 root root 64956 15. Mai 1998 fdisk.exe
-rwxr-xr-x 1 root root 6855 15. Mai 1998 findramd.exe
-rwxr-xr-x 1 root root 64425 15. Mai 1998 flashpt.sys
-rwxr-xr-x 1 root root 33447 15. Mai 1998 himem.sys
-r-xr-xr-x 1 root root 222390 15. Mai 1998 io.sys
-rwxr-xr-x 1 root root 20023 15. Mai 1998 keyb.com
-rwxr-xr-x 1 root root 34566 15. Mai 1998 keyboard.sys
-rwxr-xr-x 1 root root 29815 15. Mai 1998 mode.com
-r-xr-xr-x 1 root root 9 16. Nov 2003 msdos.sys
-rwxr-xr-x 1 root root 41302 15. Mai 1998 oakcdrom.sys
-rwxr-xr-x 1 root root 12823 15. Mai 1998 ramdrive.sys
-rwxr-xr-x 1 root root 16216 15. Mai 1998 readme.txt
-rwxr-xr-x 1 root root 881 15. Mai 1998 setramd.bat
alexande@asterix:~> umount /media/disk
umount: fstab enthält /media/disk nicht (Nur root kann es aushängen)
alexande@asterix:~> su
Passwort:
asterix:/home/alexander # umount /media/disk
asterix:/home/alexander # exit
exit


* An error message box pops up:
"Der Befehl lässt sich nicht ausführen. Die Datei oder der Ordner file://
existiert nicht."

* New message in /var/log/messages (500 is my actual user ID):
Jan 1 16:20:36 asterix hald: mounted /dev/fd0 on behalf of uid 500



Expected Results:
2. mdir should work for every user
3. Floppy should be mounted as current user and file manager should open on the
floppy directory


If I insert manually the line:

/dev/fd0 /media/floppy auto noauto,user,sync 0 0

into fstab, I can mount the floppy as ordinary user with the mount command on
a shell (I created an empty directory /media/floppy first):

alexande@asterix:~> mount /media/floppy
alexande@asterix:~> df -k
Dateisystem 1K‐Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/sda1 50403028 1185916 46656756 3% /
udev 2027632 336 2027296 1% /dev
/dev/sda3 329515992 13757212 299020256 5% /home
/dev/sdb5 50403028 202564 47640108 1% /tmp
/dev/sdb2 50403028 5825104 42017568 13% /usr
/dev/sdb3 50403028 399932 47442740 1% /var
/dev/sdb7 311363336 37104316 258442628 13% /video
/dev/sda2 100798068 62907204 32770548 66% /windows
/dev/fd0 1424 1377 47 97% /media/floppy
alexande@asterix:~> ls -l /media/floppy
insgesamt 1377
-rwxr-xr-x 1 alexande alex 35330 15. Mai 1998 aspi2dos.sys
-rwxr-xr-x 1 alexande alex 14386 15. Mai 1998 aspi4dos.sys
-rwxr-xr-x 1 alexande alex 37564 15. Mai 1998 aspi8dos.sys
-rwxr-xr-x 1 alexande alex 40792 15. Mai 1998 aspi8u2.sys
-rwxr-xr-x 1 alexande alex 29620 15. Mai 1998 aspicd.sys
-rwxr-xr-x 1 alexande alex 1142 15. Mai 1998 autoexec.bat
-rwxr-xr-x 1 alexande alex 21971 15. Mai 1998 btcdrom.sys
-rwxr-xr-x 1 alexande alex 30955 15. Mai 1998 btdosm.sys
-rwxr-xr-x 1 alexande alex 96360 15. Mai 1998 command.com
-rwxr-xr-x 1 alexande alex 828 16. Nov 2003 config.sys
-rwxr-xr-x 1 alexande alex 30742 15. Mai 1998 country.sys
-rwxr-xr-x 1 alexande alex 17191 15. Mai 1998 display.sys
-rwxr-xr-x 1 alexande alex 69079 15. Mai 1998 drvspace.bin
-rwxr-xr-x 1 alexande alex 276324 15. Mai 1998 ebd.cab
-r-xr-xr-x 1 alexande alex 0 16. Nov 2003 ebd.sys
-rwxr-xr-x 1 alexande alex 58870 15. Mai 1998 ega.cpi
-rwxr-xr-x 1 alexande alex 93242 15. Mai 1998 extract.exe
-rwxr-xr-x 1 alexande alex 64956 15. Mai 1998 fdisk.exe
-rwxr-xr-x 1 alexande alex 6855 15. Mai 1998 findramd.exe
-rwxr-xr-x 1 alexande alex 64425 15. Mai 1998 flashpt.sys
-rwxr-xr-x 1 alexande alex 33447 15. Mai 1998 himem.sys
-r-xr-xr-x 1 alexande alex 222390 15. Mai 1998 io.sys
-rwxr-xr-x 1 alexande alex 20023 15. Mai 1998 keyb.com
-rwxr-xr-x 1 alexande alex 34566 15. Mai 1998 keyboard.sys
-rwxr-xr-x 1 alexande alex 29815 15. Mai 1998 mode.com
-r-xr-xr-x 1 alexande alex 9 16. Nov 2003 msdos.sys
-rwxr-xr-x 1 alexande alex 41302 15. Mai 1998 oakcdrom.sys
-rwxr-xr-x 1 alexande alex 12823 15. Mai 1998 ramdrive.sys
-rwxr-xr-x 1 alexande alex 16216 15. Mai 1998 readme.txt
-rwxr-xr-x 1 alexande alex 881 15. Mai 1998 setramd.bat
alexande@asterix:~> umount /media/floppy
alexande@asterix:~> df -k
Dateisystem 1K‐Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/sda1 50403028 1185936 46656736 3% /
udev 2027632 336 2027296 1% /dev
/dev/sda3 329515992 13757212 299020256 5% /home
/dev/sdb5 50403028 202564 47640108 1% /tmp
/dev/sdb2 50403028 5825104 42017568 13% /usr
/dev/sdb3 50403028 399932 47442740 1% /var
/dev/sdb7 311363336 37104316 258442628 13% /video
/dev/sda2 100798068 62907204 32770548 66% /windows
alexande@asterix:~>

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
< Previous Next >