[SLE] App on startup run as specific user?
Hi, I am setting up my Linux pc at home with vmc to allow the windows machines to access my linux box. It is all working great and I'm very happy with it, a tad slower than I would have liked but not bad all the same. I wish it would be as fast as physically sitting in front of the computer, but then that would be asking too much? Anyway, I want to avoid the need to telnet into the box to start the vncserver. I want to be able to start up 2 servers one for each user during startup. I set up a script executable by the user which has only 1 line: vncserver 192.168.0.1:2 to start the server. I can put the path for this script in the boot.local file, but how do I make it run as the user I want? It needs to be run as the correct user to set the password properly for vnc. Another alternative would be to have vnc start not straight into the window manager, but to simply have a kdm login prompt for the user to be able to log into. Does anyone know how to do this? Thanks for your help, Brad. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Brad, this is the entry in my boot.local that starts up the setiathome client as the user seticlient. /bin/su -l -c "/usr/home/seticlient/setiathome -nice 15 > /dev/null 2>&1 &" seticlient Generically what I'm doing is this: su -l -c "whatever_you want_to_start" username Hope that helps. Richard Brad Jones wrote:
Hi, I am setting up my Linux pc at home with vmc to allow the windows machines to access my linux box. It is all working great and I'm very happy with it, a tad slower than I would have liked but not bad all the same. I wish it would be as fast as physically sitting in front of the computer, but then that would be asking too much? Anyway, I want to avoid the need to telnet into the box to start the vncserver. I want to be able to start up 2 servers one for each user during startup. I set up a script executable by the user which has only 1 line: vncserver 192.168.0.1:2 to start the server. I can put the path for this script in the boot.local file, but how do I make it run as the user I want? It needs to be run as the correct user to set the password properly for vnc. Another alternative would be to have vnc start not straight into the window manager, but to simply have a kdm login prompt for the user to be able to log into. Does anyone know how to do this? Thanks for your help, Brad.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Sun, 29 Aug 1999, Brad Jones wrote: bj> Anyway, I want to avoid the need to telnet into the box to start the bj> vncserver. I want to be able to start up 2 servers one for each user during bj> startup. I set up a script executable by the user which has only 1 line: bj> vncserver 192.168.0.1:2 to start the server. I can put the path for this bj> script in the boot.local file, but how do I make it run as the user I want? Not sure if this will do what you want, but sudo allows the specification of which user you wish you have the process assigned to. I tried the following in my boot.local file and sourced it, worked, so there may be a way you can use it. Heres what I tried # try launching a term with top in it sudo -u skull /usr/X11R6/bin/rxvt -bg black -fg white -e top & USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND skull 1033 0.3 1.9 1808 912 p5 S 11:11 0:00 /usr/X11R6/bin/rxvt -bg black -fg white -e top skull 1034 3.8 1.6 1464 780 p7 S 11:11 0:02 top bj> It needs to be run as the correct user to set the password properly for vnc. bj> Another alternative would be to have vnc start not straight into the window bj> manager, but to simply have a kdm login prompt for the user to be able to bj> log into. Does anyone know how to do this? I've been wondering about something like this myself for sometime, but never got around to trying to figure it out. If anyones got some suggestions on that, please respond to the list. bj> Thanks for your help, bj> Brad. bj> -- S.Toms - tomas@primenet.com - http://www.primenet.com/~tomas S.u.S.E. Linux v6.1+ - Kernel 2.2.11 It's lucky you're going so slowly, because you're going in the wrong direction. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
I have a system with one normal cd-rom player and one writer, that worked fine for reading (regular ATAPI support in the kernel compiled). But yesterday I changed my kernel to be able to start writing with the cd-writer. So I disabled the ATAPI support and enabled SCSI emulation and everything seems to work fine. However, every time I boot my system I get a long list which tels me I have 8 cd-players (devices /dev/sg0 to /dev/sg7) and 8 writers (devices /dev/sg8 till /dev/sg14). Where do I tell my system that there are only two of those things in the box and that they are connected to sg0 and sg1? Thanx, Maikel van Bree -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, i have seen a similar problem on aix, but with a tape drive :) if you set the scsi id of your cdrom drive to the scsi id of the scsi adapter it is attached to -- you will get 7 cdrom drives listed :-) (or 15, depending on your adapter). in your case i would start checking the scsi ids and make sure there are no conflicts. usually you do it with the scsi adapter software utilities or jumpers. bye, -alexm On Sat, 4 Sep 1999, Yulunga wrote:
I have a system with one normal cd-rom player and one writer, that worked fine for reading (regular ATAPI support in the kernel compiled). But yesterday I changed my kernel to be able to start writing with the cd-writer. So I disabled the ATAPI support and enabled SCSI emulation and everything seems to work fine. However, every time I boot my system I get a long list which tels me I have 8 cd-players (devices /dev/sg0 to /dev/sg7) and 8 writers (devices /dev/sg8 till /dev/sg14). Where do I tell my system that there are only two of those things in the box and that they are connected to sg0 and sg1?
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
hi, orry, i screwed up again -- this is not scsi... this is emulation... disregard the previous post... -alexm the bandwidthwaister On Sat, 11 Sep 1999, alex medvedev wrote:
i have seen a similar problem on aix, but with a tape drive :) if you set the scsi id of your cdrom drive to the scsi id of the scsi adapter it is attached to -- you will get 7 cdrom drives listed :-) (or 15, depending on your adapter). in your case i would start checking the scsi ids and make sure there are no conflicts. usually you do it with the scsi adapter software utilities or jumpers.
On Sat, 4 Sep 1999, Yulunga wrote:
I have a system with one normal cd-rom player and one writer, that worked fine for reading (regular ATAPI support in the kernel compiled). But yesterday I changed my kernel to be able to start writing with the cd-writer. So I disabled the ATAPI support and enabled SCSI emulation and everything seems to work fine. However, every time I boot my system I get a long list which tels me I have 8 cd-players (devices /dev/sg0 to /dev/sg7) and 8 writers (devices /dev/sg8 till /dev/sg14). Where do I tell my system that there are only two of those things in the box and that they are connected to sg0 and sg1?
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Sat, Sep 04, 1999 at 10:16 +0200, Yulunga wrote:
I have a system with one normal cd-rom player and one writer, that worked fine for reading (regular ATAPI support in the kernel compiled). But yesterday I changed my kernel to be able to start writing with the cd-writer. So I disabled the ATAPI support and enabled SCSI emulation and everything seems to work fine. However, every time I boot my system I get a long list which tels me I have 8 cd-players (devices /dev/sg0 to /dev/sg7) and 8 writers (devices /dev/sg8 till /dev/sg14). Where do I tell my system that there are only two of those things in the box and that they are connected to sg0 and sg1?
I had the same problem with an IDE CD/PD drive. An append = "max_scsi_luns=2" in /etc/lilo.conf solved it. For a CD writer max_scsi_luns=1 should be OK. Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (6)
-
alexm@pycckue.org
-
m.vanbree@wxs.nl
-
rowf@xnet.com
-
stefan.troeger@wirtschaft.tu-chemnitz.de
-
suse_list@hotmail.com
-
tomas@primenet.com