On Tue, 2003-04-01 at 10:26, Stephen Jeppesen wrote:
> Before I go too far and mistakenly allow somebody to delete files off my
> server, is there a way I can restrict access to certain directories for
> someone using winscp2?
> 
> I have so far created a user account and given that user a password (in
> which I will show him how to change his password using putty first)
> and now I want to only allow this user to have read only access to two
> separate directories - and no access to any other directories (/
> including!)
> 
> The same two directories are shared between Win and Linux clients using
> smb and nfs.
> 
> Win clients (smb) have read only access and Linux clients (nfs) has
> read-write. What restricts read access using ssh though?  hosts.allow
> does not appear to control access to individual files/directories.  
> 
> I have a feeling I should create a "sshusers" group, but not too sure
> that will solve what I am attempting here.
> 
> TIA
> Steve

If someone is using SSH to access the box, it should hold true that the
user would have the same perms as if they were local. You can create a
particular group for this (or other SSH users) and restrict access that
way - that should do the trick, mate...

-- 
Tue Apr  1 10:25:00 EST 2003
 10:25:00 up 10 days, 22:12,  3 users,  load average: 0.17, 0.34, 0.29
------------------------------------------------------------------
|            __    __          | kuhn media australia            |
|           / ,, /| |'-.       | http://kma.0catch.com           |
|          .\__/ || |   |      |=================================|
|       _ /  `._ \|_|_.-'      | stephen kuhn                    |
|      | /  \__.`=._) (_       |  email: [EMAIL PROTECTED] |
|      |/ ._/  |"""""""""|     |  email: [EMAIL PROTECTED]    |
|      |'.  `\ |         |     |    icq: 5483808                 |
|      ;"""/ / |         |     |                                 |
|  smk  ) /_/| |.-------.|     | mobile: 0410-728-389            |
|      '  `-`' "         "     | Berkeley, New South Wales, AU   |
------------------------------------------------------------------
 linux user:267497 * MDK 9.1 * PC/Mac/Linux/Networking/Consulting
 machine no:194239 * RH 7.3 * Sales - Service - Support - Tutor
------------------------------------------------------------------
** This messages was composed on a 100% Microsoft free computer **

Distrust all those who love you extremely upon a very slight acquaintance
and without any visible reason.
                -- Lord Chesterfield

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to