Sharing USB Ext Disk -- can only Write as ROOT ( Hotplug ??)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sharing USB Ext Disk -- can only Write as ROOT ( Hotplug ??)
I don't know if this is another one of those HOTPLUG USB problems on kernel 2.6 but I've got a nasty little problem trying to WRITE to a USB 250 GB external disk drive shared via NFS as a normal USER and not as ROOT.
SYSTEM A: Desktop with USB external drive attached running SUSE 9.1
Mounted as a HOTPLUG USB entry :
/dev/sda1 on /media/usb-storage-Y42H1MWE:0:0:0p1 type subfs (rw,noexec,nosuid,nodev,sync,procuid,ioch****t=utf8)
Now I can't export this so I mounted on SYSTEM A also as
/dev/sda1 on /media/extdisk type vfat (rw).
I have normal USER READ / WRITE either vial the "Normal" mount point /MEDIA/EXTDISK
or /MEDIA/usb-storage etc. Both Mount points give FULL access to files as a USER for READ WRITE.
(FAT32 file system selected on this drive as it's physically moved on to a WINDOWS box at times for backup -- it's a 250GB MAXTOR external USB drive).
LAPTOP B running SUSE 9.1
it's mounted as :
greyfox.site:/media/extdisk on /home/jim/maxtordrive type nfs (rw,addr=192.168.7.2)
Shows clearly READ WRITE availability.
However I can only get WRITE access IF I'm root -- and it doesn't matter how I set the permissions to /home/jim/maxtordrive.
I've got a feeling this might be due to the way HOTPLUG is implemented in the kernel 2.6
Anybody got any ideas on how to allow a NORMAL USER WRITE access to this disk.
Strange thing is when I've got this disk connected to a WINDOWS BOX and accessing it via SAMBA there is no problem at all with a normal USER and WRITE ACCESS.
I tried to share an external Firewire-Disk for Backup purposes. On the machine where the external disk is connected, the disk is automatically mounted as subfs under /media. I inserted a new line in /etc/exports to share the external disk with rw permissions and restarted the NFS-Server. Trying to mount the shared device from another machine I obtained permission denied.
If you take a look in your /var/log/messages on the machine which is exporting the external disk you see an error message concerning the shared device.
I solved the problem this way: I unmounted the external disk and mounted the device again manual in normal manner. Now everything works fine. Seems to be an error in the new introduced subfs routine.
Subfs does not seem to be the final solution at the moment.
Thanks for that advice, but I use the same userid and the same username on both machines.
Here is the error message (/var/log/messages) from the machine which exports the external disk:
Aug 12 14:37:53 silver rpc.mountd: authenticated mount request from red.bauklimatik.local:674 for /media/ieee1394_sbp2-0
010b9f700f4bffc-1-0p1 (/media/ieee1394_sbp2-0010b9f700f4bffc-1-0p1)
Aug 12 14:37:53 silver rpc.mountd: getfh failed: Operation not permitted
Don't know what 'getfh' does, if anybody knows ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.