-----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