Computing.Net > Forums > Solaris > login without password prompt

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

Reply to Message Icon

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.




Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: login without password prompt

Netra T1 without password www.computing.net/answers/solaris/netra-t1-without-password/3718.html

Sol8 Intel:black cde screen after login www.computing.net/answers/solaris/sol8-intelblack-cde-screen-after-login/853.html

Gui Crash www.computing.net/answers/solaris/gui-crash/2140.html