LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2012, 05:52 PM   #1
sploit
LQ Newbie
 
Registered: Dec 2004
Posts: 24

Rep: Reputation: 15
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
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).
 
Old 06-13-2012, 06:19 PM   #2
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
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.

Last edited by kbscores; 06-13-2012 at 06:21 PM.
 
Old 06-14-2012, 07:23 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Yes, ls -la will show the permissions of the directory itself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing MP3 files stored on NFS Server paul_hap Linux - Server 1 12-09-2009 12:34 AM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
chmod 775 to only the directories and chmod 664 to only the files? apachenew Linux - Security 6 09-27-2007 03:26 PM
Executing a script stored in an mounted NFS Share Riddick Linux - Software 6 01-13-2006 06:14 PM
Where are programs files and configuration files stored? nutshell Linux - General 2 03-09-2002 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration