Re: su within script question
From: Vwakes (vwakeNOSPAM100_at_softhome.net)
Date: 09/04/03
- Next message: damian: "dvdbackup, libdvdcss, and libdvdread"
- Previous message: Pamela Bratcher: "su within script question"
- In reply to: Pamela Bratcher: "su within script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 3 Sep 2003 19:27:58 -0700
On Wed, 3 Sep 2003 Pamela Bratcher wrote:
>In my startup script, I want to su to another user (that doesn't have a
>password) and then run a command as that user.
If you are root then you don't need the password anyways. This is what I
have in my rc.local script:
su news -c "/usr/local/sbin/fetchnews -v &"
The & just makes it run in the background.
>How can I do this?
man su
V.
- Next message: damian: "dvdbackup, libdvdcss, and libdvdread"
- Previous message: Pamela Bratcher: "su within script question"
- In reply to: Pamela Bratcher: "su within script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|