su command question
Brendan Strunk
brendan.strunk at gmail.com
Fri Jul 4 18:37:15 UTC 2008
Well they'll have you put your password in because for security purposes
On Fri, Jul 4, 2008 at 11:26 AM, Smoot Carl-Mitchell <smoot at tic.com> wrote:
> 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...
>
> You can use "sudo" to do what you want. e.g.
>
> sudo -u ventrilo /etc/ventrilo/ventrilo_srv -d
>
> This will prompt you for your own password, but run the command as user
> ventrilo. This assumes your account has sudo privileges.
>
>
> --
> Smoot Carl-Mitchell
> System/Network Architect
> smoot at tic.com
> +1 480 922 7313
> cell: +1 602 421 9005
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080704/f157c59e/attachment.html>
More information about the ubuntu-users
mailing list