Hi, As I wrote below the the rc script is launching the fah script as root.
However I think it is not a good solution as it is launching a third party program, although a trusted one, as root. I have tried to make the rc script to su to a normal user but there is something that does not work and I can't figure it out. If the rc script is running as root than when it does su it is not necessary a password, right? This is the fahw00.sh script that is working: #!/bin/bash cd /home/cpn/fah/w00 ./fahb And this is how I would like it to work: #!/bin/bash cd /home/cpn/fah/w00 su -c ./fahb cpn Regards, Clodoaldo Pinto > > James, > > Thank You for your answer. > > >Your rc file does not need to su! it IS root. > > I made the rc script launch the fah script as root > and it works. > > >My ltsp-4 does not have a su command! > > Well, this is what happens when I su when ssh logged > at w00: > > [EMAIL PROTECTED] w00]$ ssh w00 > [EMAIL PROTECTED]'s password: > [EMAIL PROTECTED] cpn]$ su > su: incorrect password > > I suppose that last message is from su. Isn't it? > > I don't remember, but perhaps I installed it myself. > > Regards, > Clodoaldo Pinto > > > Hi > > > screen.d? There is a sample file at > /opt/ltsp/i386/etc/rc.d. So I placed > > fahw00.sh there. > > How to make the ssh login not ask for a password? > > Are there any logs? > > > > Clodoaldo Pinto > > > > >>I'm trying to run a local program at startup. > > >> > > >> This is my lts.conf: > > >> [Default] > > >> SERVER = 192.168.0.2 > > >> XSERVER = auto > > >> X_MOUSE_PROTOCOL = "PS/2" > > >> X_MOUSE_DEVICE = "/dev/psaux" > > >> X_MOUSE_RESOLUTION = 400 > > >> X_MOUSE_BUTTONS = 3 > > >> USE_XFS = N > > >> LOCAL_APPS = Y > > >> NIS_DOMAIN = cpn > > >> NIS_SERVER = 192.168.0.2 > > >> SCREEN_01 = shell > > >> RCFILE_02 = get_time > > >> RUNLEVEL = 3 > > >> [w00] > > >> RCFILE_01 = fahw00.sh > > >> > > >> And this is fahw00.sh: > > >> > > >> #!/bin/bash > > >> su -c 'cd /home/cpn/fah/w00; ./fahb' -l cpn > > >> > > >> I can login at the workstation with ssh from > the server, although it asks > > for > > >> the password. Is it what is keeping the startup > su from working? > > >> > > >> Where are the logs so I can take a look at what > is happening? > > >> > > Read the discussion on ssh keys in the ltsp-4 setup. > > Executive Summary: > You can login as root by making a > (/opt/ltsp/i386)/root/.ssh/authorized_keys > file with the public key(s) of the user(s) you want > to login as. > > ie [jam]% ssh [EMAIL PROTECTED] > > You must setup the system keys as per the discussion > > My ltsp-4 does not have a su command! > > I don't use NIS so the details of other-than-root > users is not clear. > > Your rc file does not need to su! it IS root. > > Your logs are on the LOG_SERVER usually your SERVER. > James > > ______________________________________________________________________ Yahoo! Mail - agora com 100MB de espa�o, anti-spam e antiv�rus gr�tis! http://br.info.mail.yahoo.com/ ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net
