Forum Home
Press F1
 
Thread ID: 55820 2005-03-20 08:22:00 FTP Structure on Linux Box Sam I Am (1679) Press F1
Post ID Timestamp Content User
336124 2005-03-20 16:41:00 Would be nice to know what you're running.

The mount command that chill suggested was good for me, because I needed to retain http access information and because things like /var/ftp /var/html/www are chroot'ed so outside access isn't available, since I wanted to use ftp for the http server directories, with SELinux, it kinda protects a lot that even more things need to be configured, especially users permissions and using chmod 777 was definitely out of the question.

/var/ftp would be the default/home directory for the user ftp.

Failing to change directory would be expected because of user permission on that directory, using 777 may or may not be a good idea, depends whether you want to allow them writing to it or not, but disabling uploading, 766 might be more suited, most likely they should only have read access if you don't want write access so 722 or even just 222.

However, I would be inclined to just change the user information for those allowed `chcon` might be the command to look into, do ls -Z in your archived drive to see who has user permission usually in the form USER:GROUP, if created by root, then it's possibly root root.

KK
Kame (312)
336125 2005-03-21 04:43:00 Update

Dive is mounted umask 000 and still no go.

I have just changed the home dir for the user to the dir I want them to have access to. At least they are locked out of the rest.

Untill I get a seperate box for it to run on then this will have to do.

Cheers
Sam I Am (1679)
336126 2005-03-21 06:54:00 mount --bind /sourcedir /home/username/destdir didnt worK? Chilling_Silence (9)
336127 2005-03-21 07:57:00 mount --bind /sourcedir /home/username/destdir didnt worK?

Nah it didnt. :badpc:

It placed a link in the home dir but ftpwouldnt allow the change :dogeye:
Sam I Am (1679)
1 2