LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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
 
Old 07-26-2013, 01:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Yes.

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


Reply



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 12:54 PM
Chroot SSH on CentOS 5 Kenichi Kato Linux - Server 4 05-22-2010 04:41 PM
SSH Tunneling on Centos wuhaa Linux - Security 2 02-11-2009 11:30 PM
can not ssh my PC from another PC with the Centos Distribution rm22 Linux - Networking 5 02-04-2008 11:39 AM
SSH and CentOs, need help HyperTrey Linux - Desktop 6 10-18-2006 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 AM.

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