Using chmod on files stored on NFS
I recently bought an Iomega Cloud drive and want to use it to store all my code on. Yesterday, I came across a problem while trying to make a perl script executable.
Here's a directory with a few scripts in it, all were executable prior to being copied onto the drive, except "hi.pl" Code:
[sploit@localhost Perl]$ ls -l Code:
[sploit@localhost Perl]$ chmod +x hi.pl Code:
[sploit@localhost Perl]$ sudo chmod +x hi.pl Code:
[sploit@localhost Perl]$ sudo chown sploit hi.pl Any ideas on next steps? The NFS settings are set to rwx in the NFS, fstab mounts rw (x shouldn't make a difference as it's an ownership issue). |
Most likely it is the underpermissions. Did your mount point have permissions of 777 or 755 before mounting the drive to it? Also I see that message with our windows NFS drive. May seem like a silly question since it is NFS, but is the filesystem formatted as NFS on the drive? If the drive wasn't formatted prior to mounting it the filesystem on the drive could be what is causing the issue.
Hopefully this helps. |
Yes, ls -la will show the permissions of the directory itself.
|
All times are GMT -5. The time now is 01:14 PM. |