Results 1 to 2 of 2
Can anyone tell me why I cant add files to my sftp server with my root, or sftp user accounts via filezilla, after "chown root:user /dir" and "chmod 750 /dir" ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-04-2011 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 80
Chmod/Chown permissions help.
Can anyone tell me why I cant add files to my sftp server with my root, or sftp user accounts via filezilla, after "chown root:user /dir" and "chmod 750 /dir" as root user.
I also have the CHrootDirectory option set to /dir as well in the sshd_config file
The users are jail'd, but no one can add files, not even the root user, it returns permission is denied, if any, including root attempts to add a file.
So I just have an empty sftp server x.x
I SHOULD be able to add files with my root user I would think, but I cant.
- 09-08-2011 #2
Never set up an FTP server but a couple of possibilities spring to mind.
1. 750 may need to be 760 (read(4) + write(2) = 6)
2. Won't it be the user (or group) that the FTP Server runs as that needs the permissions to /dir?
try the following
then bounce the FTP service and try againCode:chmod 760 /dir chgrp WHATEVER_GROUP_THE_FTP_SERVER_RUNS_UNDER /dir
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn


Reply With Quote
