GoodVibrations;316103 Wrote: 
> I wanted to install some plugins as user=squeezecenter.
> Since I couldn't su to it from root (I'm running debian), I found the
> above post and did:
> chsh -s /bin/bash squeezecenter
> 

Try: su -s /bin/sh squeezecenter

(Which overrides the shell specified in /etc/passwd).

> 
> I then did:
> chsh -s /usr/sbin/nologin squeezecenter
> 
> But I'm not sure that's right?
> Because if I now do "su squeezecenter" I get "This account is currently
> not available.", whereas before I just got nothing "".
> 
> So am I really setting the shell back to the original setting with
> "nologin" or am I doing something wrong?
> Is there some .profile or something like it for the squeezecenter user,
> where the shell is stated?
> 

It's in /etc/passwd.  By default it is /bin/false, which serves the
same effect but doesnt print anything.

> 
> Hope you understand my rambling. i just want the SC user set back as it
> was before I switched to the bash shell.

It shouldn't make any difference, though.  Either /bin/false or
/usr/sbin/nologin do the same thing except for the print thing.

See above about forcing a shell on su, though.


-- 
snarlydwarf
------------------------------------------------------------------------
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=49376

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to