How to invoke a program as a specifik user
I have placed a startup script in /etc/init.d that invokes a vnc server when the machine is booted. The problem is, how do I make it start, "posing" as a specific user, so that the user logging in through vnc, will have access rights I can control. This is not a specific VNC question, as it should apply to any startup script in /etc/init.d Thanks in advance Bo Jacobsen e-mail: subs@SystemHouse.dk
* Bo Jacobsen
The problem is, how do I make it start, "posing" as a specific user, so that
su username -c prog-to-start -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.
* Bo Jacobsen;
The problem is, how do I make it start, "posing" as a specific user, so that the user logging in through vnc, will have access rights I can control.
This is not a specific VNC question, as it should apply to any startup script in /etc/init.d
I could be wrong but have you looked at man "startproc" -- Togan Muftuoglu
On Thursday 08 November 2001 08:32, Togan Muftuoglu wrote:
* Bo Jacobsen;
on 08 Nov, 2001 wrote: The problem is, how do I make it start, "posing" as a specific user, so that the user logging in through vnc, will have access rights I can control.
This is not a specific VNC question, as it should apply to any startup script in /etc/init.d
I could be wrong but have you looked at man "startproc"
DESCRIPTION startproc and the LSB variant start_daemon check for all processes of the specified executable and starts it if no processes are found. Note that startproc is designed to start a daemon but not a kernel thread or a program which enables a kernel thread. Jerry
participants (4)
-
Bo Jacobsen
-
Jerry Kreps
-
Mads Martin Joergensen
-
Togan Muftuoglu