This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.9: login via ssh allows Administrator privileges
Christian Franke <Christian.Franke <at> t-online.de> writes:
> Michael Hoffman wrote:
> > When I log in via ssh I find I have Administrator privileges:
> >
> > [snip]
> >
> > Is there a way to turn this off or remove myself from the Administrators and
> > root groups? I prefer not to have administrative access unless I explicitly
> > request it.
>
> Restarting the shell through cygdrop from cygutils package may help:
>
> # exec cygdrop /bin/bash -l
Thanks for the helpful response! I was able to get the behavior I wanted by
adding this to /etc/sshd_config:
ForceCommand /bin/bash /etc/ssh-cygdrop
and putting this in /etc/ssh-cygdrop:
exec cygdrop ${SSH_ORIGINAL_COMMAND:-"$SHELL"}
Thanks again!
Michael
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple