This is a discussion on Boot time script under user ID within the Linux Operating System forums, part of the Unix Operating Systems category; --> I am trying to start a set of processes on behalf of a non root user at boot time. ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am trying to start a set of processes on behalf of a non root user at boot time. I want the scripts to have the PATH, home directory and permisions of this user, even though this user has not logged in (the machine is still booting, running boot.local, I think it's not even at a multi user runlevel. Further, I's like this to be portable to non-Linux *nixes such as Solaris 10. Is this possible ? Any help is interesting. Thanks |
| ||||
| In comp.os.linux.setup Tom Rauschenbach <tomsusenet@tomsdomain.org>: > I am trying to start a set of processes on behalf of a non root user at > boot time. I want the scripts to have the PATH, home directory and > permisions of this user, even though this user has not logged in (the > machine is still booting, running boot.local, I think it's not even at > a multi user runlevel. Further, I's like this to be portable to non-Linux > *nixes such as Solaris 10. Is this possible ? Any help is interesting. Yep and it should work on any unix: su -c "command/script" username Hint: man su -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 23: improperly oriented keyboard |