* [gentoo-user] Mount permissions
@ 2006-03-13 17:11 Paul Stear
2006-03-13 17:47 ` Jim
0 siblings, 1 reply; 3+ messages in thread
From: Paul Stear @ 2006-03-13 17:11 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Mount permissions
2006-03-13 17:11 [gentoo-user] Mount permissions Paul Stear
@ 2006-03-13 17:47 ` Jim
2006-03-14 8:33 ` Paul Stear
0 siblings, 1 reply; 3+ messages in thread
From: Jim @ 2006-03-13 17:47 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 163718720 Paul Stear <gentoo@appjaws.plus.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Mount permissions
2006-03-13 17:47 ` Jim
@ 2006-03-14 8:33 ` Paul Stear
0 siblings, 0 replies; 3+ messages in thread
From: Paul Stear @ 2006-03-14 8:33 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-14 8:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-13 17:11 [gentoo-user] Mount permissions Paul Stear
2006-03-13 17:47 ` Jim
2006-03-14 8:33 ` Paul Stear
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox