G'day I have a share (/home) on box A, an external hard-drive attached to box B to which only root can write. I can mount A:/home on B and browse and open the files, but when (as root on B) attempting to copy files from the mounted share to the external drive I get the error: cp: cannot access ' /mnt/ipex/home/simon':Permission denied.
I thought that no_root_squash on the share might allow it, but no. What have I missed?
Thanks
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Slater wrote:
I have a share (/home) on box A, an external hard-drive attached to box B to which only root can write. I can mount A:/home on B and browse and open the files, but when (as root on B) attempting to copy files from the mounted share to the external drive I get the error: cp: cannot access ' /mnt/ipex/home/simon':Permission denied.
read/write permission in 'fstab'.
- -- peace out.
tc,hago.
g .
in a free world without fences, who needs gates.
learn linux: 'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html.gz 'The Linux Documentation Project' http://www.tldp.org/ 'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html 'HowtoForge' http://howtoforge.com/
On Fri, 2008-11-14 at 14:04 +0000, g wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Slater wrote:
I have a share (/home) on box A, an external hard-drive attached to box B to which only root can write. I can mount A:/home on B and browse and open the files, but when (as root on B) attempting to copy files from the mounted share to the external drive I get the error: cp: cannot access ' /mnt/ipex/home/simon':Permission denied.
read/write permission in 'fstab'.
Thanks g but this is a temporary setup so I'm mounting manually as needed and /etc/exports on A is set to rw,sync.
On Sat, 2008-11-15 at 08:34 +1100, Simon Slater wrote:
On Fri, 2008-11-14 at 14:04 +0000, g wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Slater wrote:
I have a share (/home) on box A, an external hard-drive attached to box B to which only root can write. I can mount A:/home on B and browse and open the files, but when (as root on B) attempting to copy files from the mounted share to the external drive I get the error: cp: cannot access ' /mnt/ipex/home/simon':Permission denied.
read/write permission in 'fstab'.
Thanks g but this is a temporary setup so I'm mounting manually as needed and /etc/exports on A is set to rw,sync.
---- I think from the little information I see is that you aren't having an issue with the 'share' but rather the directories.
If directories are perms rwx______ (700) then no one can descend into the folders but if they were rwxr_xr_x (755), then users could descend into the directories and read the files contained inside them.
Craig
On Fri, 2008-11-14 at 15:55 -0700, Craig White wrote:
On Sat, 2008-11-15 at 08:34 +1100, Simon Slater wrote:
On Fri, 2008-11-14 at 14:04 +0000, g wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Simon Slater wrote:
I have a share (/home) on box A, an external hard-drive attached to box B to which only root can write. I can mount A:/home on B and browse and open the files, but when (as root on B) attempting to copy files from the mounted share to the external drive I get the error: cp: cannot access ' /mnt/ipex/home/simon':Permission denied.
read/write permission in 'fstab'.
Thanks g but this is a temporary setup so I'm mounting manually as needed and /etc/exports on A is set to rw,sync.
I think from the little information I see is that you aren't having an issue with the 'share' but rather the directories.
If directories are perms rwx______ (700) then no one can descend into the folders but if they were rwxr_xr_x (755), then users could descend into the directories and read the files contained inside them.
Craig
That's it! Thanks Craig, problem solved, but shouldn't root be able to descend into a 700 directory? What about root on another machine (given appropriate restrictions in iptables to network)? Maybe I've misunderstood what root can do.