Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    75

    Question ssh - user access to another users files

    I'm wanting to grant access for a user to access another users files on my server. So far I've done:

    Created a new account for the second user
    usermod -G user1 user2

    When I ssh into the second account, I try to ch /home/user1
    ls -la gives me:
    ls: .: Permission denied

    When i type groups, i see
    group1 group2

    What am I missing? This should be possible, right?

    Both users have normal shells

    Thanks in Advance!
    Diane

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    That's fine for file ownership, but you have to configure permissions appropriately. If you want all users to share access then you'll need to grant 777 access to dirs and 666 to files on the shared data. If you only want it between two users, then you'll need to create a new unix group and add both user accounts to that same group and then enable group access to the files you want to share, instead of world access.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    75

    Default

    Yep; I'm good to go now. Thanks!

Similar Threads & Tags
Similar threads

  1. Disable SSH/Shell Access for all users
    By MH-Andy in forum Security
    Replies: 7
    Last Post: 10-12-2010, 10:27 PM
  2. SSH access via Public Key Auth for cPanel users - How?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-28-2008, 03:58 AM
  3. Disabling SSH Access For All Users
    By Dathorn_ADT in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-11-2007, 09:22 AM
  4. Problem All Ssh users have access to cpanel
    By Neronix in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-02-2006, 08:20 AM
  5. user SSH access
    By s3kk3y in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-25-2003, 04:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube