Secure files on an FTP server
16-11-2007, 21:54
|
#1
|
|
Next: STS-125 -HST Repair
Join Date: Sep 2003
Location: 127.0.0.1
Services: TV: Sky Digital
Phone: BT
Mobile: Orange
Internet: Twang.net ADSL
Posts: 4,170
|
Secure files on an FTP server
Evening,
What permission do I need to set so that only my FTP logon ID can read / write to a particular folder and subfolders?
It's hosted on a Linux server so I assume it's a CHMOD level but I'm not sure what to set the level to.
I think I just need to check the owner boxes and leave the Group and Public blank...
Anybody confirm this is correct?
Thanks
Lee
Edit: I'm using SmartFTP as the FTP client - CHMOD contains has the Owner column set as User - think that's what confused me!
Edit 2: In the User column - there's a tick box UID - what's that for??
Last edited by LSainsbury; 16-11-2007 at 21:59.
|
|
|
16-11-2007, 21:57
|
#2
|
|
Eric Cartman Wannabe
Join Date: Jun 2003
Location: Cockney geeza land
Age: 27
Services: c:\> net start punky
Posts: 12,086
|
Re: Secure files on an FTP server
Quote:
Originally Posted by LSainsbury
I think I just need to check the owner boxes and leave the Group and Public blank...
|
Yep, assuming the FTP username = file owner.
__________________
"We're not here for a long time, we're here for a good time" - Mike Ness (Social Distortion)
"Reach for the sky, 'cause tomorrow may never come" - Reach For The Sky (Social Distortion)
|
|
|
16-11-2007, 22:10
|
#3
|
|
Next: STS-125 -HST Repair
Join Date: Sep 2003
Location: 127.0.0.1
Services: TV: Sky Digital
Phone: BT
Mobile: Orange
Internet: Twang.net ADSL
Posts: 4,170
|
Re: Secure files on an FTP server
Quote:
Originally Posted by Gavin
Yep, assuming the FTP username = file owner.
|
Do I need to set the FTP username as file owner? The files are just about to be uploaded by the FTP owner so I assume it's default?
|
|
|
16-11-2007, 22:22
|
#4
|
|
Eric Cartman Wannabe
Join Date: Jun 2003
Location: Cockney geeza land
Age: 27
Services: c:\> net start punky
Posts: 12,086
|
Re: Secure files on an FTP server
Actually, i'm not sure... I think it depends on the server setup.
I don't think the FTP ACL maps over to the linux ACL so the owner of the file would be the user who executed the FTP daemon.
__________________
"We're not here for a long time, we're here for a good time" - Mike Ness (Social Distortion)
"Reach for the sky, 'cause tomorrow may never come" - Reach For The Sky (Social Distortion)
|
|
|
16-11-2007, 22:26
|
#5
|
|
Next: STS-125 -HST Repair
Join Date: Sep 2003
Location: 127.0.0.1
Services: TV: Sky Digital
Phone: BT
Mobile: Orange
Internet: Twang.net ADSL
Posts: 4,170
|
Re: Secure files on an FTP server
No worries - I've done some testing and I think CHMOD 4700 is the code I need (Owner Read / Write / Execute only)
If anybody else has a thought - please go ahead - In the mean time I'll use that code!
Thanks Gavin!
|
|
|
16-11-2007, 22:38
|
#6
|
Join Date: Jul 2003
Location: Poole, Dorset
Age: 23
Services: Sky+
V-Box
VM 10MBit
Posts: 9,800
|
Re: Secure files on an FTP server
700 would do the job but I don't think there's anything particularly wrong with 4700
|
|
|
17-11-2007, 00:36
|
#7
|
|
cf.mega poster
Join Date: Jan 2004
Posts: 3,389
|
Re: Secure files on an FTP server
Quote:
Originally Posted by Gavin
Actually, i'm not sure... I think it depends on the server setup.
I don't think the FTP ACL maps over to the linux ACL so the owner of the file would be the user who executed the FTP daemon.
|
Depends on the ftp server.
I know linux servers running cpanel and pure-ftpd as the ftp server map it to the account holders user name.
try chmod 700 (i think) (owner RWX .group --- and public ---)
or Chmod 500 (i think) (owner RW- Group --- and public ---)
Chmod 600 (i think) (owner R-X Group --- public ---)
R= read
W = Write
X = execute
- = No permission.
__________________
It's Not a Bug It's a 'Feature'
|
|
|
17-11-2007, 00:51
|
#8
|
|
cf.geek
Join Date: Jan 2004
Posts: 944
|
Re: Secure files on an FTP server
Quote:
Originally Posted by dragon
Depends on the ftp server.
I know linux servers running cpanel and pure-ftpd as the ftp server map it to the account holders user name.
try chmod 700 (i think) (owner RWX .group --- and public ---)
or Chmod 500 (i think) (owner RW- Group --- and public ---)
Chmod 600 (i think) (owner R-X Group --- public ---)
R= read
W = Write
X = execute
- = No permission.
|
700 = owner r / w / x
600 = owner r / w
500 = owner r / x
400 = owner r
200 = owner w
100 = owner x
|
|
|
17-11-2007, 01:34
|
#9
|
|
cf.mega poster
Join Date: Jan 2006
Posts: 2,798
|
Re: Secure files on an FTP server
Last edited by popper; 17-11-2007 at 01:49.
|
|
|
17-11-2007, 22:27
|
#10
|
|
cf.mega poster
Join Date: Oct 2006
Posts: 1,572
|
Re: Secure files on an FTP server
Think binary when doing these
Read, Write, Execute
rwx
111 = 7
Read, Write
rw-
110 = 6
Write only
-w-
010 = 2
Read only
r--
100 = 4
etc
So a chmod 701 implies the following
Owner = 7 = 111 = rwx (owner can read write and execute)
Group = 0 = 000 = --- (group has no permissions at all)
World = 1 = 001 = --x (world can execute only)
Yes I'm bored
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 01:30.
|