LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   nagging problem --sharing USB drive with Windows for read/write (https://www.linuxquestions.org/questions/suse-opensuse-60/nagging-problem-sharing-usb-drive-with-windows-for-read-write-366481/)

1kyle 09-24-2005 03:08 AM

nagging problem --sharing USB drive with Windows for read/write
 
Hi -- I seem to have a problem that just won't go away with external USB drives -- I've got 2 X 250 GB maxtor drives connected to a SUSE server and want to share these with Windows on a Network.

The drives are formatted as reserfs drives .

I mount them after the server is booted

mount -t reiserfs -o rw /dev/sda5 /media/4windows1
mount -t reiserfs -o rw /dev/sdb5 /media/4windows2

On the Windows machine I can see and read all the directories and files

BUT NO WRITE ACCESS

I have to go back on the Linux server and AFTER EACH BOOT re set all the permissions manually

I've set the NFS up correctly etc -- but I still manually have to do the permissions stuff as root.

Now I know there is a problem with USB drives in the fstab as when the fstab is processed the devices aren't ready yet so perhaps I could have a script that does the mount and the permissions after boot up

I don't know any shell scripting so was wondering if someone could post one for me


I need the 2 mounts as above and allow ALL members of group USERS to have read and write access to the directories /media/4windows1 and /media/4windows2 from the root downwards (and to be able to create new ones) --these disks are for public shares across the entire network.

An automatic script which ran after the system was booting would be quite an acceptable get around --I just don't want to have to enter this stuff manually each time.

Thanks

-K

johnson_steve 09-24-2005 07:54 PM

if you have to reset the permissions each time you reboot this sounds like you use udev (udev creates everything in /dev/ dynamicly at boot and also resets the permissions) you can edit your udev rules so that when it boots it will give sda5 &sdb5 the corect permissions

1kyle 09-25-2005 03:35 AM

Thanks --It's fine now

I think a BIG problem with Linux (or at least the users) is that having used Windows for so long one automatically thinks of doing things in a "Windows like" mode.


Once you start "Unlearning" the Windows way it does become much more logical and easier.

Cheers

-K


All times are GMT -5. The time now is 02:05 AM.