LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2004, 02:49 PM   #1
dramous
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Rep: Reputation: 0
setting up permission


i recently installed ssh remote support onto my system, my problem is what do i need to do to assign a user access to set directories only. I am not sure where to set this up. the folder i want them to access only is /var/www/html and the cgi bin.

please help
 
Old 10-19-2004, 11:44 AM   #2
MClayton
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
I'm also a newbie, struggling with a similar issue. I've just installed WinSCP which uses ssh to connect to my Linux machine and want to restrict access to certain directories.

To change the default directory that the user account logs into I think you can edit /etc/passwd, find the user account in question and change the directory from /home/user to /var/www/html.

The bit I haven't solved yet is stopping them from having browsing other directories. What I think we need is something like 'bash --restricted' (which you can run from the bash prompt - I'm using red hat 9 by the way), but when I change /bin/bash to "/bin/bash --restricted" in /etc/passwd I can no longer log in.
 
  


Reply


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
Setting permission, file access. Apogeal1 Linux - Newbie 5 06-20-2005 08:17 PM
SUID and setting 'other' permission to _ _ x hpladd Linux - Newbie 3 06-17-2005 01:37 PM
Permission setting tkt Linux - Newbie 4 06-08-2005 09:06 PM
Default ttyS1 permission setting gilester Mandriva 8 03-07-2005 01:43 PM
Permission setting in RH9 lordgrey.org.uk Linux - Newbie 2 01-21-2004 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:45 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