Executing a command with an other user
1 posts in topic
Flat View  Flat View

Posted By:   Florian_Binder
Posted On:   Saturday, September 8, 2001 03:07 PM

my programm is running under the user nobody, but it must add new users, and therefor I have to execute the command ("adduser -s /bin/false/ " + newuser") with root privileges. How can I make this???

Re: Executing a command with an other user

Posted By:   Nathan_Meyers  
Posted On:   Sunday, September 9, 2001 11:18 AM

Please see href="http://www.jguru.com/faq/view.jsp?EID=402105">this
FAQ entry. It's about code running as "nobody" in the servlet environment, but applies to any situation in which you need to do something with a different user ID.
About | Sitemap | Contact