Yes you can use the "su" command:

su -l myuser -s /bin/sh -c "command to start vnc"



On 2004-04-29 at 09:37, David Vella wrote:

> Hi,
> 
> I have set up VNC to load on machine startup via rc.local which however
> means that it loads under root and not default user since at that point
> the machine is still loading up.
> 
> Does anyone know how I can start it under a different non-root account
> on startup of the machine? And better to bind to desktop:0 ?
> 
> regards,
>   
> David Vella - GFI Software Ltd. - www.gfi.com
> Messaging, Content Security & Network security software
> GFI: FAXmaker - LANguard - MailSecurity - DownloadSecurity
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Keith Vassallo
> Sent: Wednesday, April 28, 2004 4:04 PM
> To: Malta Linux User Group - general list
> Subject: Re: [LINUX.ORG.MT] KVM Switches and GNU/Linux
> 
> Hi there,
> 
> That's a good idea and I do use it regularly... But there are some
> occasions when I can't use VNC... like connecting via VNC to the
> machine, su to root and trying to launch konqueror - doesn't work.
> 
> Also, When the machine goes down etc... It's nice to see what's
> happening.
> 
> Keith
> 
> Valentin FRUNZA wrote:
> 
> >
> > Hello Keith,
> >
> > Have you considered the software option? I mean, You could use vnc to 
> > connect from the "monitored" computer to those "bald" ones. It does 
> > work for Windows and Linux. Just search for it @ freshmeat.net.
> >
> > It is free to use for both OS'es and you can control far more than 2-4
> 
> > pc's.
> >
> > Regards,
> > Valentin FRUNZA
> >
> > ************************************************
> > Linux is my choice! OpenOffice can help you too!
> > ************************************************
> >
> > _________________________________________________________________
> > Tired of spam? Get advanced junk mail protection with MSN 8. 
> > http://join.msn.com/?page=features/junkmail
> >
> > _______________________________________________
> > MLUG-list mailing list
> > MLUG-list@linux.org.mt
> > http://mailserv.megabyte.net/mailman/listinfo/mlug-list
> 
> 
> 
> --
> Keith Vassallo
> Registered GNU/Linux User #290991
> http://www.keithvassallo.net
> 
> _______________________________________________
> MLUG-list mailing list
> MLUG-list@linux.org.mt
> http://mailserv.megabyte.net/mailman/listinfo/mlug-list
> 
> 
> 
> This mail was checked for malicious code and viruses
> by GFI MailSecurity. GFI MailSecurity provides email content
> checking, exploit detection, threats analysis and anti-virus for
> Exchange & SMTP servers. Viruses, Trojans, dangerous
> attachments and offensive content are removed automatically.
> Key features include: multiple virus engines; email content and
> attachment checking; an exploit shield; an HTML threats engine;
> a Trojan & Executable Scanner; and more.
> 
> In addition to GFI MailSecurity, GFI also produces the
> GFI MailEssentials anti-spam software, the GFI FAXmaker
> fax server & GFI LANguard network security product ranges.
> For more information on our products, please visit
> http://www.gfi.com. This disclaimer was sent by
> GFI MailEssentials for Exchange/SMTP.
> 
> _______________________________________________
> MLUG-list mailing list
> MLUG-list@linux.org.mt
> http://mailserv.megabyte.net/mailman/listinfo/mlug-list

-- 
Ramon Casha <[EMAIL PROTECTED]>
Malta Linux User Group

Reply via email to