LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-07-2006, 12:51 PM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
Executing a script stored in an mounted NFS Share


Dear all,
This is going to be quite a specific problem, so please bear
with me for a second.
I like to store everyone at home's things on the server which
makes it easier to back up and things don't matter when users
blow up their computers, which they do regularly.

My parents share a machine (192.168.0.21) with 2 users:
lo (uid=1000, group=users)
al (uid=1001, group=users)
The machine logs lo in automatically, and then al does a switch
user and logs himself in in screen 8 (instead of 7 where lo is)
while lo is still logged in.

Both lo and al use thunderbird, the simply unzipped version
from mozilla.com. My latest "upgrade" was to move the ~/thunderbird
directory which was locally stored into
~/.thunderbird/thunderbird which is remotely mounted.

I changed the executables to point to the right direction, and
lo's thunderbird works fine. al's thunderbird, when it's in
~/.thunderbird/thunderbird (on the server) doesn't work on the
other hand, complaining that "/bin/sh is not accessible or executable".

On the server, /etc/exports is as follows (only the interesting bits):

Code:
/home/ed/Users/LO/dotthunderbird 	192.168.0.21(rw,all_squash,anonuid=1000,anongid=100,sync)

/home/ed/Users/AL/dotthunderbird 	192.168.0.21(rw,all_squash,anonuid=1001,anongid=100,sync)
I would like to know why for al can't execute thunderbird
when it is on an nfs share, and lo can.

Thanks,
Riddick

Last edited by Riddick; 01-07-2006 at 12:52 PM. Reason: spelling
 
Old 01-08-2006, 09:02 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
NFS is a network share as if the remote filesystem is local, so executing scripts and applications from it will run as if they are local to your system mounting the share.

Though in your case, I don't know why you would make your exports look like they do, there's no need for two entries like you have to the same host for different mount shares. Something like this will work just fine and you can mount to each specific subdirectory beyond the /home/ed/Users without any problems:

Code:
/home/ed/Users/ 	192.168.0.21(rw,all_squash,anonuid=1000,anongid=100,sync)
 
Old 01-08-2006, 12:00 PM   #3
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
but what about the user al that is uid=1001 and need to access and execute files as such?

Thanks,
Riddick
 
Old 01-08-2006, 11:15 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by Riddick
but what about the user al that is uid=1001 and need to access and execute files as such?

Thanks,
Riddick
Easiest setup to do, make sure the user al is on the client and server with the same UID.
 
Old 01-09-2006, 05:55 AM   #5
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
ahh no, but my setup is that all the files that are on the server are under one
user (ed), and the structure is:

On the server:
/home/ed/Users/AL, LO, and other Users
also:
/home/ed/Shared is the shared directory

In light of that, how can I get al to execute his script?

Thanks,
Riddick
 
Old 01-12-2006, 10:37 AM   #6
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
ok, the problem in running the script is when it's sotred on the nfs share.
The exact error is:

al@LO:~/.thunderbird/thunderbird> ./thunderbird
bash: ./thunderbird: /bin/bash: bad interpreter: Permission denied

this doesn't happen when the exact same folder is copied locally and the script is run.

Please help!

Riddick
 
Old 01-13-2006, 07:14 PM   #7
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
mounted with "exec" as an additional option and it worked.
You guys should really have got that one...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
export a mounted Samba share w/NFS nifflerX Linux - Software 3 07-19-2005 12:29 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 09:23 AM
Can't execute NFS mounted script hexbox Linux - Networking 2 02-03-2005 06:59 PM
Executing files on an NFS share? zero79 Linux - Networking 6 11-17-2004 09:27 AM
DocumentRoot on a nfs mounted share pdhami Red Hat 0 05-17-2004 03:17 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration