Re: [gentoo-user] Mount permissions
snip all Hi, The mystery gets deeper, every time I mounted the network storage server disk and rsync'd I had a lot of errors. It appears that the mount point was changing permissions every time I mounted. I want all of the directories and files to retain the original privileges during the rsync. Anyway after tearing my hair out (whats left of it) I realised that after a umount my mount point /mnt/network was still connected, the umount said that the mount point was disconnected. Overtired, frustrated and baffled I switched off the box and went to the land of dreams. Today as soon as the box had booted I checked /mnt/network and The network storage discs were connected. I don't know How and Why this is automatically happening -- can anybody give me any clues? I am rsync'ing at the moment with no errors but the backup is in the wrong directory on the network usb disc, so I need to understand how this device is automatically mounted so I can change the directory. Thanks for all who have helped so far Paul -- This message has been sent using kmail with gentoo linux -- gentoo-user@gentoo.org mailing list
[gentoo-user] Mount permissions
The root of all my rsync/network problems is a permissions problem The /mnt/network is drwxrwxrwx 3 root root 4096 Mar 13 13:24 test After I mount using mount -t smbfs -o username=paul,password=pass //LKG7DDD5F/gentoobackup /mnt/network the /mnt/network permissions have change to drwxr-xr-x 1 root root 0 Mar 13 16:57 test How do I ensure the permissions stay the same after the mount Paul -- This message has been sent using kmail with gentoo linux -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Mount permissions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 163718720 Paul Stear [EMAIL PROTECTED] wrote: The root of all my rsync/network problems is a permissions problem The /mnt/network is drwxrwxrwx 3 root root 4096 Mar 13 13:24 test After I mount using mount -t smbfs -o username=paul,password=pass //LKG7DDD5F/gentoobackup /mnt/network the /mnt/network permissions have change to drwxr-xr-x 1 root root 0 Mar 13 16:57 test How do I ensure the permissions stay the same after the mount Paul type man mount or man mount.cifs. Once in man, press / which will let you search. Now type smbfs and hit enter. You should see the options for smbfs. The interesting ones are: uid gid umask fmask/file_mode dmask/dir_mode uid will let you set a user id for all files gid will let you set a group id for all files umask remove umaks bits. for example if you mount with umask=000, everything will be 777 or rwx. fmask/file_mode set the mas for files dmask/dir_mode set the mask for directories If you are mounting win2k or higher, you should use cifs. This is how I mount my C$ share on my WinXP laptop: mount -t cifs -o username=administrator,gid=100,file_mode=0660,dir_mode=0770 //laptop/C$ /mnt/laptop The above is should be one line. This will mount my laptops C$ share and give permission for everyone in the users group to read/write/execute. If you need to mount win2k then you would change cifs to smbfs, file_mode to fmask and dir_mode to dmask. Jim -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEFbApeqJ5Vbm4CxYRAm0BAJsEgG+wLteEQ3ObxncyONuQyquOeACfdEDI KE+BUBJTU1VpvmOEL09MthU= =djHQ -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list