Date: Fri, 15 Apr 2005 09:31:13 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Timothy Smith <timothy@open-networks.net> Cc: freebsd-questions@freebsd.org Subject: Re: grappling with users Message-ID: <20050415063112.GB1061@gothmog.gr> In-Reply-To: <425F0BE3.7000508@open-networks.net> References: <425F0BE3.7000508@open-networks.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-04-15 10:33, Timothy Smith <timothy@open-networks.net> wrote: > whats the correct method of creating a deamon user account, which you > can use to start a deamon process but can't be logged into. so far i > have not seen a single good explaination or example of this below is > my svn user, who has /sbin/nologin, but can't be used because it runs > the no login shell. whats the correct way to do this? > > %su svn -c "svnadmin create /usr/local/svn/PubWare" > This account is currently not available. I don't know if this is the Correct(TM) way, but you can use the -m option of su(1), and change your id from superuser to the user locked out with /sbin/nologin: : gothmog:/root# grep ^nobody /etc/passwd : nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin : gothmog:/root# su -m nobody : root@gothmog[9:29am]/root> id : uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050415063112.GB1061>