[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you...
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: How do you...
- From: Vincent Bernat <bernat_(_at_)_free_(_dot_)_fr>
- Date: Wed, 3 Jan 2001 21:01:04 +0100
Le Wed Jan 03, 2001 at 11:40 -0800,
wilton_(_at_)_daedilus_(_dot_)_com <wilton_(_at_)_daedilus_(_dot_)_com> disait :
> I'm trying to run a server as another user so that it doesn't run as root.
> I don't want to offer a shell on the account for fear that a security bug
> may be found.
> I've read the man page for su and I've tried both -c and -m but neither one
> will work. I use 'su -m jabber jabberd/jabberd' and it tells me that it
> can't execute the binary file, but if I place the -m after jabber then it
> tells me it can't login and gives the nologin message. According to the man
> page I should just be able to 'su jabber -c jabberd/jabberd' but no luck.
If you place "-m" after the login, su launches /bin/nologin -m.
I use "su -m dnet /bin/sh /full/path/to/your/app"
BOFH excuse #353:
Visit your host, monkey.org