su command question

John Doe hommeentete at gmail.com
Fri Jul 4 17:03:58 UTC 2008


Hey good question. I'm excited myself to see what other people say.

As for me,I just googled 'unix scripts with su' and got some  
interesting discussions that might help you out.

I've done what you want with a cronjob but that doesn't help you  
unless you're willing to give up the script running at log in.

Reply if you find something that works!

All the best!

Sent from my iPod

On Jul 4, 2008, at 10:57 AM, "Robert Dailey" <rcdailey at gmail.com> 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.
>
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list