|
Prev: How to to define the size of a file in scripting
Next: Gawk match() and numbers in scientific notation
From: rvaedex23 on 7 May 2008 11:45 I have a script that is set up using ID: infa123 The script will scp files from one machine to another and only infa123 can write to the directories. The public key is set up so that the password is not prompted during the scp. I need to have a user execute this script but they would have to use their own ID like bobjones If the user executes the script they will get permission denied when writting to the directories. Also, they are not set up to use the public key to bypass the password. Any hints.
From: Bill Marcum on 7 May 2008 13:08
On 2008-05-07, rvaedex23(a)gmail.com <rvaedex23(a)gmail.com> wrote: > > I have a script that is set up using ID: infa123 > > The script will scp files from one machine to another and only > infa123 can write to the directories. > > The public key is set up so that the password is not prompted > during the scp. > > I need to have a user execute this script but they would have to > use their own ID like bobjones > > If the user executes the script they will get permission denied > when writting to the directories. > Also, they are not set up to use the public key to bypass the > password. Any hints. > (a) let bobjones upload to his home directory and then use crontab to transfer the files to the other directory. (b) make bobjones a member of a group that has permission to write the other directories (c) sudo |