Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu May 11, 2006 12:11 pm 
Offline
Junior Member

Joined: Wed Feb 01, 2006 1:24 am
Posts: 40
Hi!

I just set up ProFTPd on my linode, and was trying to figure out how to allow access of one user "autodmc" to /var/www. My idea was to make a soft link from /home/autodmc/www to /var/www, then lock Autodmc into his home directory (so he couldn't go mucking about the system)

Here's what I did:

Code:
chown -R autodmc /var/www
cd /home/autodmc
ln -s /var/www .
chown -R autodmc www


A ls -all giveth me:
Code:
li9-114:/home/autodmc# ls -all
total 5
drwxr-xr-x  2 autodmc autodmc 1024 May 11 12:04 .
drwxrwsr-x  5 root    staff   1024 May 10 15:09 ..
-rw-r--r--  1 autodmc autodmc  567 May 10 15:09 .bash_profile
-rw-r--r--  1 autodmc autodmc 1834 May 10 15:09 .bashrc
lrwxrwxrwx  1 autodmc root       8 May 11 12:04 www -> /var/www


But whence I log into my FTP server, I see no www. Nor do I see something that looks like a link. And I can't cd into www.

How can I do this? I want to allow access to one directory, but lock that user into another directory.


On another note, I want to make a "dropbox" system, where some users can "drop" files into a directory, but not pick them up, while other users have full access to that directory. How can I do that?


Top
   
 Post subject:
PostPosted: Thu May 11, 2006 2:46 pm 
Offline
Junior Member

Joined: Wed Feb 01, 2006 1:24 am
Posts: 40
Found the answer myself... here's how you do it if you have to do something simple:

http://www.castaglia.org/proftpd/doc/co ... hroot.html

Basically:
Code:
mount --bind /var/ftp/incoming /home/bob/incoming


Ahhh....


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group