|
I need help setting CHMOD Permissions.
|
View this Thread in Original format
| DJ RozzeR |
| I have created an FTP Account , the username is uploads , same as the Directory, I want it so people can View and Upload , But cannot Download ! What is the CHMOD Command For this ?? |
|
|
| BaRTeZ |
just login with programs like FlashFXP and then fix it :)
nice GUI ownz stupid codes ;) |
|
|
| Ste |
| i have g6 ftp server and when u make a new account for sum1 you get options to tick or untick what you want them to be able to do... |
|
|
| DigiNut |
I figured someone else would answer this but I guess not. Anyway, I'm assuming your fileserver is UNIX, because otherwise the chmod command is completely meaningless.
Anyway, you have to understand how the chmod command works. You start off with a 9-digit binary number that is basically a set of flags:
Owner Group Other
r w x r w x r w x
r = read, w = write, x = execute. You have to take the binary number and convert it to octal (you can use the windows calculator for that).
Normally the owner and group are root, and the typical flags are 100100100 or octal 444 (everybody can read but not write). If "x" is set on a directory, it means they can list the contents of it; if it's set on a file, it means they can cause it to run on your server. So for a directory x is usually 1, and you have 101101101 or octal 555.
So if you want to give write-only access to a folder, the folder must be owned either by your upload user or the group that your upload user is a member of. For owner, you set the directory to 011001001 or 311 (owner can write, everybody else can only view contents). For group you set it to 001011001 (131) or for both, set to 011011001 (331). You can also subtract 1 from any of those numbers to disallow other users from viewing the directory contents at all.
Anyway, hope that makes sense to you, if not, you should probably google for chmod and read the full reference on it. To do what you're trying to do you'll probably also need to make use of the chown and chgrp commands.
Also, this is again assuming you're on UNIX - if this is actually a Windows-based FTP server, then the commands are completely meaningless and you just need to read the documentation on the FTP prog. :p
|
|
|
| UglyDave |
| DigiNut to the rescue :) |
|
|
|
|