su command question

debian debiani386 at gmail.com
Sat Jul 5 02:39:40 UTC 2008


On Fri, 2008-07-04 at 10:57 -0500, Robert Dailey wrote:
> HI,
> 
> I'm running Ubuntu Server 8.04 and I'm creating a bash script to start
> a server program as follows:
> 
> su ventrilo -c "/etc/ventrilo/ventrilo_srv -d"
> 
> However, the 'su' command makes me insert the password for user
> 'ventrilo' when I run the bash script containing the line of code
> above. How can I make this work without the password prompt? I also
> don't want this to be a security issue (for example, I don't want
> people to be able to connect to my server using PuTTY and login as
> 'ventrilo' with no password...
> 
> Thanks in advance.
> 

well first off i recommend using sudo instead of su.

--cj





More information about the ubuntu-users mailing list