Date: Fri, 22 Mar 2002 18:05:40 -0300 From: Fernan Aguero <fernan@iib.unsam.edu.ar> To: "Dmitry S. Makovey" <dmitry@athabascau.ca> Cc: Anthony Schneider <aschneid@mail.slc.edu>, "Cameron S. Watters" <cam-listsubs@h2os.org>, FreeBSD Security <freebsd-security@freebsd.org> Subject: Re: su -c user command not working Message-ID: <20020322180540.C561@iib.unsam.edu.ar> In-Reply-To: <0GTE005BP5MQBK@local.athabascau.ca>; from dmitry@athabascau.ca on Fri, Mar 22, 2002 at 01:18:03PM -0700 References: <20020322165816.A561@iib.unsam.edu.ar> <0GTE005BP5MQBK@local.athabascau.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
+----[ Dmitry S. Makovey (dmitry@athabascau.ca) dijo sobre "Re: su -c user command not working": | | On Friday 22 March 2002 12:58, you wrote: | > root> su man -c catman | > This account is currently not available. | > man is listed in /etc/passwd with /sbin/nologin as shell | if you want to run something with user privileges you should use su -m (do | not simulate full login - it will disable new shell invocation) | +----] OK, OK, so now it's clear. But apparently su -m does not work either. It still intrigues me why the examples in the su(1) manpages explicitly mention cases where no shell is available and therefore, the example will not work! What I'm trying to do is to create a new user to make backups (using amanda). But, I'm trying to avoid giving that user a shell. Right now i cannot check how I've configured amanda (since I cannot su) without giving amanda a shell. However, what will happen with cron jobs? I suppose that they will work OK without a shell ... is this so? Thanks also to Cameron and Anthony for their prompt replies. Fernan PD: regarding the ~/.cshrc issue, i had /bin/csh as shell, but even using /bin/tcsh does not make it change. Permissions for ~/.cshrc are set to 644. (Oh, and this also happens with root's own ~/.cshrc) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020322180540.C561>