[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [diaspora-installer] new strings review request



Pirate Praveen wrote:
>> (Among the questions this raises is: why sudo?  Using it costs you an
>> extra "Pre-Depends: sudo", but all you need there is su!)
> 
> if disabled-login option is used su can't run commands as that user but
> sudo can.

Do you mean that the user "diaspora" was created with adduser's
"--disabled-login" flag?  That just locks the password, to stop people
logging in as that user.  Root can still run commands as that user.

Just to check:

 # adduser --disabled-login testuser
 [...]
 # su testuser -c whoami
 testuser

If testuser is also given a dummy shell like /bin/false then it may
become necessary to say "su -s /bin/sh testuser -c whoami" (compare
the invocation of su in /etc/cron.daily/popularity-contest), but root
still doesn't need to go via sudo.
-- 
JBR	with qualifications in linguistics, experience as a Debian
	sysadmin, and probably no clue about this particular package


Reply to: