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
total 16
-rwxrw-rw- 1 1000 users 834 Dec 3 2011 750words_exporter.pl*
-rwxrw-rw- 1 1000 users 583 Dec 3 2011 fb.pl*
-rw-rw-r-- 1 99 users 27 Jun 13 10:43 hi.pl
Cool, all executable except hi.pl.
Code:
[sploit@localhost Perl]$ chmod +x hi.pl
chmod: changing permissions of `hi.pl': Operation not permitted
Whatever ...
Code:
[sploit@localhost Perl]$ sudo chmod +x hi.pl
[sploit@localhost Perl]# ls -l
total 16
-rwxrw-rw- 1 1000 users 834 Dec 3 2011 750words_exporter.pl*
-rwxrw-rw- 1 1000 users 583 Dec 3 2011 fb.pl*
-rwxrw-rw- 1 1000 users 479 Apr 25 14:21 HelloWorld.pl*
-rwxrwxr-x 1 99 users 27 Jun 13 10:43 hi.pl*
Okay, that works, but I don't want to have to sudo everytime ...
Code:
[sploit@localhost Perl]$ sudo chown sploit hi.pl
chown: changing ownership of `hi.pl': Permission denied
Now, I don't really care about not being able to chown this particular file. What I'd like to chown is the folder, so that I can save files to it and make them executable without having to sudo or "perl 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).