[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] FTP User without sideadmin permissions



"Frank Baschin" <frank.baschin@xxxxxxxxx>  wrote

> Hello,
> 
> At 08:45 AM 7/14/2001, you wrote:
>Hello,
>
>how can I create a FTP-ONLY User on my RaQ4?
>I mean a user who can ftp access to the server but have not
>the whole permissions of a sideadmin.
>
Create a special user, without shell access etc. and
who will not be using his user account, this user may
only ftp to the main site/web as he is going to be
locked into /home/sites/siteX/web directory tree.
He won't be able to do anything else.

Copy /etc/group to save it.
cp /etc/group /etc/group.save
edit /etc/group add the user to the siteX group.

Copy /etc/passwd to save it.
cp /etc/passwd /etc/passwd.save
edit /etc/passwd change the users site to /home/sites/siteX/web
This will allow the user ftp access to only that directory tree.

No need to restart any services. just do the above, and it should work.
GeraldW

P.S. This works, although I am not sure if there could be other issues.
If you want to try it, and you don't like it copy the .save files back.