Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-28-2003, 06:36 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
Users home directory. Permissions.

I've got my ftp users to use there home directory in /mnt/store/ftp/username, I changed there home dir in passwd file. And the shell to /bin/false.

Problem is, they only have read permissions on there home dir. I want them to have read write delete. Where do I set the appropriate permissions for the users?

Old 10-28-2003, 06:39 PM   #2
LQ Newbie
Registered: Oct 2003
Posts: 24

Rep: Reputation: 15
im having the same problem, i need to write files, and i was told to use the command "su-" to give us root, but i duno where to type the command?
Old 10-28-2003, 06:57 PM   #3
LQ Newbie
Registered: Aug 2003
Distribution: RedHat 9.0
Posts: 17

Rep: Reputation: 0

search for the function "chmod" on this site and you will find your answer.
Old 10-28-2003, 08:16 PM   #4
Registered: Sep 2003
Location: Springfield Ma.
Distribution: Mandrake 9.2,Knoppix 3.7,Slackware 10.0, FreeBSD. 5.3, OpenBSD 3.6, NetBSD 2.0, Debian
Posts: 275

Rep: Reputation: 30
Epiclinux, type it in your terminal, or konsole or any of the other command lines.
And it's su - (with a space between the u -) then enter your password and your root.
Old 10-29-2003, 09:13 AM   #5
LQ Newbie
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
I did a chmod 777 on my users directory, and it didn't work.

If I change the shell back to bash and login with my ftpuser account, I can create a directory in /mnt/store/ftp/ftpuser. I think the problem is with the vsftpd its self. I need to add permissions somewhere in there. I'm not sure though, i'm pulling my hair out trying to figure it out, and i'm sure its something fairly simple.

If I add my user "ftpuser" to my chroot list, to unchroot the user, I still can't creat a directory in /mnt/store/ftp/ftpuser.

Any more idea's?

EDIT: Figured it out.
Two ways to do it!
First wayIn reference to this thread:

Heres what I did.
I added
to my vsftpd.conf file

I ran chmod and chown from the command promt
chown -Rf user /mnt/store/ftp/user
chmod -Rf 0775 /mnt/store/ftp/user

I created a file the same name as my user name in /etc/vsftpd/user_config/ and added the following lines to it

Second way:
Add to your vsftpd.conf file

Add your user to vsftpd.chroot_list, and chmod 777 /mnt/store/ftp/user

and thats it. :P

Last edited by jsbush; 10-29-2003 at 01:13 PM.


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
Users can only see home directory bluenix Linux - General 20 03-12-2005 09:51 AM
Home directory permissions reverting back Parksy Linux - General 3 02-04-2004 09:21 PM
multi users on the same home directory rpinatel Linux - General 2 09-05-2003 12:55 PM
multi users on the same home directory rpinatel Linux - General 4 09-05-2003 11:22 AM
2 users, 1 mailbox and 1 home directory keevitaja Linux - Newbie 3 08-15-2002 09:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 PM.

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