Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Secure files on an FTP server


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

Secure files on an FTP server
Reply
 
Thread Tools
Old 16-11-2007, 21:54   #1
Next: STS-125 -HST Repair
 
LSainsbury's Avatar
 
Join Date: Sep 2003
Location: 127.0.0.1
Services: TV: Sky Digital Phone: BT Mobile: Orange Internet: Twang.net ADSL
Posts: 4,170
LSainsbury has a bronzed appealLSainsbury has a bronzed appeal
LSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appeal
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??
__________________
http://www.leesainsbury.com

Last edited by LSainsbury; 16-11-2007 at 21:59.
LSainsbury is offline   Reply With Quote
Old 16-11-2007, 21:57   #2
Eric Cartman Wannabe
 
punky's Avatar
 
Join Date: Jun 2003
Location: Cockney geeza land
Age: 27
Services: c:\> net start punky
Posts: 12,086
punky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver bling
punky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver bling
Re: Secure files on an FTP server

Quote:
Originally Posted by LSainsbury View Post
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)
punky is offline   Reply With Quote
Old 16-11-2007, 22:10   #3
Next: STS-125 -HST Repair
 
LSainsbury's Avatar
 
Join Date: Sep 2003
Location: 127.0.0.1
Services: TV: Sky Digital Phone: BT Mobile: Orange Internet: Twang.net ADSL
Posts: 4,170
LSainsbury has a bronzed appealLSainsbury has a bronzed appeal
LSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appeal
Re: Secure files on an FTP server

Quote:
Originally Posted by Gavin View Post
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?
__________________
http://www.leesainsbury.com
LSainsbury is offline   Reply With Quote
Old 16-11-2007, 22:22   #4
Eric Cartman Wannabe
 
punky's Avatar
 
Join Date: Jun 2003
Location: Cockney geeza land
Age: 27
Services: c:\> net start punky
Posts: 12,086
punky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver bling
punky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver bling
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)
punky is offline   Reply With Quote
Old 16-11-2007, 22:26   #5
Next: STS-125 -HST Repair
 
LSainsbury's Avatar
 
Join Date: Sep 2003
Location: 127.0.0.1
Services: TV: Sky Digital Phone: BT Mobile: Orange Internet: Twang.net ADSL
Posts: 4,170
LSainsbury has a bronzed appealLSainsbury has a bronzed appeal
LSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appealLSainsbury has a bronzed appeal
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!
__________________
http://www.leesainsbury.com
LSainsbury is offline   Reply With Quote
Old 16-11-2007, 22:38   #6
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 23
Services: Sky+ V-Box VM 10MBit
Posts: 9,800
Graham M has a nice shiny starGraham M has a nice shiny starGraham M has a nice shiny starGraham M has a nice shiny star
Graham M has a nice shiny starGraham M has a nice shiny starGraham M has a nice shiny starGraham M has a nice shiny starGraham M has a nice shiny starGraham M has a nice shiny star
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: Secure files on an FTP server

700 would do the job but I don't think there's anything particularly wrong with 4700
__________________
Used to be Zeph - I'm still me though
Peter: Oh my god, Brian, there's a message in my Alphabits. It says, 'Oooooo.'
Brian: Peter, those are Cheerios.
www.elitehealthdistribution.co.uk - www.loonyasylum.net
Graham M is offline   Reply With Quote
Old 17-11-2007, 00:36   #7
cf.mega poster
 
dragon's Avatar
 
Join Date: Jan 2004
Posts: 3,389
dragon has reached the bronze age
dragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze age
Re: Secure files on an FTP server

Quote:
Originally Posted by Gavin View Post
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'
dragon is offline   Reply With Quote
Old 17-11-2007, 00:51   #8
dev
cf.geek
 
Join Date: Jan 2004
Posts: 944
dev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant futuredev has a brilliant future
Re: Secure files on an FTP server

Quote:
Originally Posted by dragon View Post
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
dev is offline   Reply With Quote
Old 17-11-2007, 01:34   #9
cf.mega poster
 
popper's Avatar
 
Join Date: Jan 2006
Posts: 2,798
popper has a bronzed appealpopper has a bronzed appeal
popper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appealpopper has a bronzed appeal
Re: Secure files on an FTP server

Quote:
Originally Posted by Zeph View Post
700 would do the job but I don't think there's anything particularly wrong with 4700
http://www.evolt.org/article/A_quick...torial/18/541/

http://www.ezau.com/latest/tools/chmod.html

http://search.virginmedia.com/result...+calculator&cr=

http://search.virginmedia.com/result...=CHMOD+list&cr=
__________________
Share what you know. Learn what you don't. Data Protection Public Register
http://www.ico.gov.uk/ESDWebPages/Search.asp?EC=1
OT BR thread http://www.cableforum.co.uk/board/12...ll-things.html

Last edited by popper; 17-11-2007 at 01:49.
popper is offline   Reply With Quote
Old 17-11-2007, 22:27   #10
cf.mega poster
 
Join Date: Oct 2006
Posts: 1,572
The Jackal has a bronzed appealThe Jackal has a bronzed appeal
The Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appeal
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
__________________
The Jackal is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 01:30.


Links
Google
 
Web www.cableforum.co.uk


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Copyright © 2003 - 2008, Cable Forum.
(s204569790.onlinehome.info)