LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS 6.4 and SSH (https://www.linuxquestions.org/questions/linux-newbie-8/centos-6-4-and-ssh-4175471033/)

blyssed 07-26-2013 12:23 PM

CentOS 6.4 and SSH
 
Hello.

First, thank you for your time. I appreciate any help you may provide.

My question is in regard to SSH and multiple users. I currently run CentOS 6.4 with openSSH. I have two users, "root" and "owner." I use the "owner" account to access the server via SSH. OpenSSH is set to the default configuration. I run a minecraft server from the "owner" home directory and I have a simple start and stop script which starts and stops the Minecraft server. I would like to allow a second user to login to the server via SSH and access these scripts that are stored within the "owner" home directory. Is it possible to add a user, let's say "user1", and allow them access to only the "owner" directory, or other specified directory within the "owner" home directory? Thank you!

Blyssed

acid_kewpie 07-26-2013 01:02 PM

nothing to do with ssh at all really, you'd probably be best of using sudo to allow user1 to run specific commands as someone else. There are loads of good examples out there on writing a proper sudoers entry to allow this, e.g. http://quaid.fedorapeople.org/sudo-t...#at-last-setup

szboardstretcher 07-26-2013 01:20 PM

Yes.

Between user/group permissions, setting home directory, and maybe a chroot jail if you want to get fancy.


All times are GMT -5. The time now is 04:33 PM.