Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Aug 14, 2013 12:02 pm 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:26 am
Posts: 62
Location: Earth
Hi Guys,
Our server runs CentOS 6 here on Linode. I had created a user with the following command:
Code:
[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 sshd_config file (which is located here /etc/ssh/sshd_config)
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.


Top
   
PostPosted: Wed Aug 14, 2013 12:17 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Try running
Code:
chsh <user>
and change it to /bin/sh that will change the shell to the default one on the system

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Wed Aug 14, 2013 1:02 pm 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:26 am
Posts: 62
Location: Earth
Thanks...


Top
   
PostPosted: Thu Aug 15, 2013 4:15 pm 
Offline
Senior Member

Joined: Thu Apr 12, 2012 6:26 am
Posts: 62
Location: Earth
It turns out that I am not quite there yet.
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.


Top
   
PostPosted: Thu Aug 15, 2013 4:26 pm 
Offline
Newbie

Joined: Wed Mar 27, 2013 8:52 pm
Posts: 4
I believe you can add an existing user to the admin group by using the usermod command.
It should be
Code:
usermod -a -G sudo <username>


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group