[NTLUG:Discuss] Bash Scripting and permissions
Greg Edwards
greg at nas-inet.com
Sat Nov 30 16:02:39 CST 2002
kbrannen at gte.net wrote:
> Patrick Parks wrote:
>
>> I am working on a simple bash script, that will tar and zip my home
>> dir onto a remote backup computer across nfs. On the backup computer
>> copy, cause I am root, and the root_squash is on in the exports
>> permissions. As I am writing this I am getting some ideas :) Can a user
>> have permissions to mount a remote nfs directory without having to sudo?
>> That may be my answer there, off to the search engines to see if this
>> will work, would appreciate any suggestions. Thanks
>
>
> Use 2 scripts (programs). Have 1 program that all it does is [un]mount
> the NFS dir, and the other script to do all the other work. Something
> like this:
>
>
> HTH,
> Kevin
>
Patrick,
Can you setup automount on your machine? With amd you do not have to
mount an NFS directory to access the remote machine. No root issues
when a user attempts an access either.
--
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com
More information about the Discuss
mailing list