Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Apr 27, 2010 11:21 am 
Offline

Joined: Tue Apr 27, 2010 10:57 am
Posts: 1
Hi,

I've just finished setting up my new Linode (apache/php/mysql etc).

Now I'd like to take steps to improve security, and from what I've read, disabling ssh for the root account & creating another user account is a good idea.

I'm able to create the new user with this command -

Quote:
adduser --home /home/user1 --shell /bin/bash


However after ssh'ing with the new user, I can't access the home folder. Does the home folder require further permissions setup, or have I missed an option when creating the user?

The error message I get after ssh login is -

Quote:
Could not chdir to home directory /home/aobyrne: Permission denied
-bash: /home/aobyrne/.bash_profile: Permission denied


The 'home' folder appears to be owned by user '501' with group 'staff', which seems to be different to all the other folders which with user & group as 'root'.


Cheers,

Adam.


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2010 12:53 am 
Offline
Newbie

Joined: Wed Apr 28, 2010 12:46 am
Posts: 2
Did the $HOME folder you specified already exist before running adduser? If so it will not update the permissions.

Regardless just chown -R the $HOME to the UID & Group of the user you created and you should be fine.

Troy.


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2010 11:30 am 
Offline
Senior Member
User avatar

Joined: Tue Mar 17, 2009 5:11 am
Posts: 129
Location: UK
Sorry if I've misunderstood, but as root run:
Code:
adduser aobyrne

Would create your user with access to /home/aobyrne


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


Who is online

Users browsing this forum: No registered users and 4 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