Well they'll have you put your password in because for security purposes<br><br><div class="gmail_quote">On Fri, Jul 4, 2008 at 11:26 AM, Smoot Carl-Mitchell <<a href="mailto:smoot@tic.com">smoot@tic.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, 2008-07-04 at 10:57 -0500, Robert Dailey wrote:<br>
> HI,<br>
><br>
> I'm running Ubuntu Server 8.04 and I'm creating a bash script to start<br>
> a server program as follows:<br>
><br>
> su ventrilo -c "/etc/ventrilo/ventrilo_srv -d"<br>
><br>
> However, the 'su' command makes me insert the password for user<br>
> 'ventrilo' when I run the bash script containing the line of code<br>
> above. How can I make this work without the password prompt? I also<br>
> don't want this to be a security issue (for example, I don't want<br>
> people to be able to connect to my server using PuTTY and login as<br>
> 'ventrilo' with no password...<br>
<br>
You can use "sudo" to do what you want.  e.g.<br>
<br>
sudo -u ventrilo /etc/ventrilo/ventrilo_srv -d<br>
<br>
This will prompt you for your own password, but run the command as user<br>
ventrilo. This assumes your account has sudo privileges.<br>
<br>
<br>
--<br>
Smoot Carl-Mitchell<br>
System/Network Architect<br>
<a href="mailto:smoot@tic.com">smoot@tic.com</a><br>
+1 480 922 7313<br>
cell: +1 602 421 9005<br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br>