Hi,

I want to switch users using a shell script, i.e.

su username

However, i can't figure out how to enter the password in via a shell script. Anyone know how to do this, it's definately out of the scope of my shell scriptin knowledge.

Thanks
-peter

using sudo would be fine as well, but it suffers from similar problems.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.