Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
login without password prompt
Name: hrishikesh Date: October 22, 2003 at 23:22:42 Pacific OS: Sun 5.8 CPU/Ram: 2 GB
Comment:
Hi, I use a login "test" this is a very generic user account without any root rights. I have a shell script which changes the system date. But to execute this script I need to "su" and acquire root level access. I know the root password. How can I write a shell script which can either use "login" of "su" command to acquires user rights "WITHOUT PROMPTIING FOR A PASSWORD". Niether su nor login take password as a parameter. P.S: This need to be an automated tests so it should have no prompting.
Name: ulvi Date: October 23, 2003 at 06:06:33 Pacific
Reply:
Do you know "sudo". I have never used it, but I know that it gives root permission to a normal user to run some super user commands. (you should use it carefully for security reason!)
link for sudo: http://www.courtesan.com/sudo/
0
Response Number 2
Name: Ogan Sayek Date: October 23, 2003 at 08:47:08 Pacific
Reply:
yes Sudo will do what you need.
0
Response Number 3
Name: Rick Slade Date: October 23, 2003 at 18:50:32 Pacific
Reply:
Yes sudo will work. You can also use suid (chmod 4755)and change ownership of the script to root (that way you don't have to embed a clear text root-password in the script. Both techniques are a security risk! A non-privleged user can break out of the script and end up with a root shell.
Summary: I have 2 SUN Netra T1's. I have the root password for one machine(MC1) but do not have any passwords for the second machine(MC2).Here are the configurations: MC1: --- Sun OS 5.8 DISK: disk0 , disk1 CD...
Summary: Hi all, after the intel installation of Solaris 8 without problems the system comes up and I get the login frame and can login without problems. After about 30 sec. the PC seems to stop because nothin...
Summary: Kris - The command above is wrong. The correct syntax is: sys-unconfig (note the hyphen, not underscore). The machine will give a warning it will erase all network parameters and asks if you want to...