Help to set permission on password files in script
Hi Techies
I am stuck in a problem, I have written a script which is calling a second script which contains some command and password for quering on database. I do not want to disclose this command or specially password file. Please help..
Please have a look on directory structure and permissions on them...
Now as you can see I have given 750 permission to dir "testing" , files "C4jobs.sh", "jobstatus1.sh" and "dspas".
"dspas" contains the password where "jobstatus1.sh" contains the commands. I have given permission to user to execute "/home/user/C4jobs.sh" which is calling script " jobstatus1.sh" which is using the password from "dspas" files.
I want to secure dspas file as this file also have the permission of 750.
Please guide me to set the permission or if there is another way to secure, please share.
You can, sure... But if the program has to decrypt that file to use it, you've just handed out instructions on how to read that encrypted file to the world.
If I was genuinely worried about keeping a file secret, I'd set up a separate user account to hold secret things and configure sudo so they could sudo commandname to run it. No access otherwise.
And if you're trying to keep things secret from users with administrator access? You're just plain out of luck.
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Hi All
I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file
Please help if some know the syntex? :confused::wall: (2 Replies)
Hi,
I am unable to set the password remotely. I am using the script as below:
ep=`echo "$p" | /usr/lbin/makekey`
ssh -t $i "/usr/local/bin/sudo useradd -c "$user_c" -m -d /home/$user_id -s /bin/ksh $user_id; /usr/local/bin/sudo /usr/sam/lbin/usermod.sam -F -p $ep $user_id"
The... (0 Replies)
Hi All,
I have a gateway server, from where I can connect any server via 'sudo ssh server_name'. Generally, if we need to run a command on any number of servers, we put server names in a file like '/tmp/ser_name' and execute it with for loop from gateway server.
Now, I need to set non-expiry... (0 Replies)
okay here I go again...
I have created a script which adds new user to /etc/password and which inturn creating a locked password in /etc/shadow but I am expecting to have *NP* for that particular user.Can someone help me with a script which can set the password for a particular user to NP in... (1 Reply)
Hi there,
I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix.
Can someone help me to go-about doing this in one shot.
Cheers,
RN (2 Replies)
Hi All,
please help me on how to secure my shell script?
I chnanged it to read-only mode using 'chmod'.
but still i would like to set password for open the script.
Is there any way? Please help me!!
Thankyou all in advance!!
:b: (6 Replies)
Hi All
How can I set password in linux.It is OK if it display password in plain text in script.
manually i can set:
#passwd
Changing password for root
Enter new password:
Bad password: too weak.
Re-enter new password:
Password changed.
#
I want this to be done by script.Please let me... (2 Replies)
Trying to setup user to have the ability to delete any files (regardless of owner) in /tmp.
I've tried almost everything... the permission on the folder is drwxrwxrwt 10 bin bin, and at one point I give all the possible permission (short of root) I can give to the user, and he still can't delete... (2 Replies)