[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-linux
Subject:    [kde-linux] Mount fails for non-root users (device:/ ioslave & desktop)
From:       Alexandros Karypidis <karypid () inf ! uth ! gr>
Date:       2002-12-16 10:28:45
[Download RAW message or body]

Hello all,

I've compiled and installed all KDE 3.1 rc5 packages, except for kdebindings 
on a i386 SuSE 8.1 Linux.

I have a problem with the devices:/ filesystem. When I login as a user and try 
to mount a CDROM or floppy, I get the message:

        "mount: only root can do that".

This happens both when I click on the device icon in a konqueror window which 
is showing the "devices:/" URL, as well as when I click on the Desktop icons 
when I select unmounted devices to appear on my Desktop.

My fstab allows users to mount removable media:

/dev/cdrecorder      /media/cdrecorder    auto       ro,noauto,user,exec   0 0
/dev/cdrom           /media/cdrom         auto       ro,noauto,user,exec   0 0
/dev/fd0             /media/floppy        auto       noauto,user,sync      0 0

If I try "mount /media/cdrom" from konsole's bash prompt the mount succeeds. 
Furthermore, the device icon is updated in konqueror and right-clicking to 
unmount the device DOES work.

If I run konqueror from konsole to view the debug messages, I see the 
following:

--- CUT HERE ---
kio (UIServer): UIServer::newJob observerAppId=anonymous-1771. Giving id=9
kio (UIServer): UIServer::mounting 9 /dev/cdrom
kio_file: MOUNTING fstype= dev=/dev/cdrom point= ro=false
kio_file: FileProtocol::mount _fstype=
kio_file: /bin/mount  -t '' '/dev/cdrom' '' 
2>/tmp/kde-karypid/kio_fileXJcsza.tmp
kio (UIServer): UIServer::jobFinished id=9
--- CUT HERE ---

As can be seen, the "mount" command attempted tries to specify the type of 
file-system and the target mount directory, which is only allowed for root.

-- 
To err is human, but to forgive is beyond the scope of the Operating System...

Alexandros Karypidis
University of Thessaly
Computer & Communications Engineering dept.

___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic