Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-26-2013, 01:23 PM   #1
LQ Newbie
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
CentOS 6.4 and SSH


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!

Old 07-26-2013, 02:02 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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.
Old 07-26-2013, 02:20 PM   #3
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] X forwarding on SSH in CentOS tkmsr Linux - Server 1 05-25-2010 01:54 PM
Chroot SSH on CentOS 5 Kenichi Kato Linux - Server 4 05-22-2010 05:41 PM
SSH Tunneling on Centos wuhaa Linux - Security 2 02-12-2009 12:30 AM
can not ssh my PC from another PC with the Centos Distribution rm22 Linux - Networking 5 02-04-2008 12:39 PM
SSH and CentOs, need help HyperTrey Linux - Desktop 6 10-18-2006 04:22 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration