Hello. I'm trying to allow another member to login into my ssh account with root privilegdes. So,this is what I did to do that :
on /usr/local/etc/sudoers I have uncommented the lines below :
on /etc/ssh/sshd_config :
I tried :
and then :
I'm not sure that it works as it should...another root user should be allowed to surf into the home folder of another root user ?
on /usr/local/etc/sudoers I have uncommented the lines below :
Code:
##
## User privilege specification
##
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
%sudo ALL=(ALL) ALL
on /etc/ssh/sshd_config :
Code:
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
I tried :
Code:
pw groupmod mark -m mark
pw group mod wheel -m mark
and then :
Code:
ssh mark@mariettopc.ns0.it
password for mark@mariettopc:
ok
sudo -i ---> it works
su ----> su : sorry
mark@marietto:~ $ whoami
mark
mark@marietto:~ $ sudo whoami
root
mark@marietto:~ $ cd /home/marietto/Desktop
cd: /home/marietto/Desktop: Permission denied
I'm not sure that it works as it should...another root user should be allowed to surf into the home folder of another root user ?