LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2004, 05:24 AM   #1
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
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.

Thanks

Last edited by 1kyle; 07-16-2004 at 05:27 AM.
 
Old 08-12-2004, 08:24 AM   #2
jeoppman
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Hi, I obtained the same problem with SuSE 9.1.

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.

-Jens Oppermann
 
Old 08-12-2004, 10:03 AM   #3
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
When you are using NFS you must have to be sure that on the server and the client you have the same UID and GID ( user id and group id)

have a look at
cat /etc/passwd
of both computers
 
Old 08-12-2004, 10:33 AM   #4
jeoppman
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
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 ...

Thanks for any hints.
 
Old 08-12-2004, 11:01 AM   #5
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Jeoppman,

I have had a look on the net most references I found pointed at a sharename which could not be found and name below is not a very nice name

/media/ieee1394_sbp2-0
010b9f700f4bffc-1-0p1

could you post the content of

cat /etc/exports
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nagging problem --sharing USB drive with Windows for read/write 1kyle SUSE / openSUSE 2 09-25-2005 03:35 AM
External USB drive -- only WRITE as root 1kyle Linux - Hardware 0 08-03-2004 10:00 AM
Kernel 2.6 sharing USB disk via NFS 1kyle Linux - Networking 1 07-19-2004 06:59 AM
How to install Red Hat 9 on ext. USB hard disk? nedaf7 Red Hat 3 03-24-2004 07:15 PM
usb pen drive - only root can write? BrianK Linux - Newbie 3 01-29-2004 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration