How can I grant an already created user shell access?
Our server runs CentOS 6 here on Linode. I had created a user with the following command:
[root@myserver1 ~]# useradd -c "myApp FTP User" -s /bin/false -d /var/www/vhosts/myapp/httpdocs ftp.myapp
Now, it turns out that the (FTP) user I had created, ftp.myapp now requires shell access.
I have attempted to grant the user shell access by editing the sshdconfig file (which is located here /etc/ssh/sshdconfig)
I added these line to the file:
AllowUsers myApp
But when I try to login as this user via SSH (I use putty), after inserting the username and password on the command prompt, the screen exits.
What am I missing here?
I would appreciate any useful input/suggestions.
Thanks.
4 Replies
chsh
and change it to /bin/sh that will change the shell to the default one on the system
I still need to grant this user root privileges or sudo rights for some of the admin work the user wants to carry out.
How can I achieve this?
Thanks.
It should be
usermod -a -G sudo <username></username>