Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
April 21, 2014, 01:39:48 AM

Pages: [1]   Go Down
  Print  
Author Topic: FTP Sub Account File Permissions Problems  (Read 3445 times)
stokesarch
Newbie
*
Offline Offline

Posts: 3


« on: November 21, 2013, 08:39:33 AM »

I  am using FTP accounts that are in the CPanel, and I want to share files with clients through ftp while managing the permissions of the files themselves.  For instance I want to be able to upload a file and have the user be able to download it but not be able to modify or delete it.  I have set some sub accounts in the ftp access, uploaded files with permissions set to 644, but the sub users can still delete  or move the files.  It seems like the sub users are only restricted by directory.  Is there any way to achieve what I am looking for?   
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5809



« Reply #1 on: November 21, 2013, 08:45:51 AM »

What happens if you chmod to 444 after uploading? Can users chmod back to 644? (hopefully not) It sounds like FTP users are being treated as owners of the files (how about the directories?). If they are owners, something might not be set up correctly. I haven't touched ftp accounts for a long, long time, so I'm kind of guessing here.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
stokesarch
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: November 22, 2013, 06:45:03 AM »

I can't actually chmod to 444.  I change the permissions to 444, but it doesn't stick, it just reverts back to 644 when I check it.  Both the Main Account user and the Sub Account users have the same chmoding abilities and can however chmod to other permissions such as 777, 644, and 600.
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5809



« Reply #3 on: November 22, 2013, 07:04:12 AM »

Are you using an FTP client to chmod? Very often FTP client chmods are ignored by servers, and you need to use your hosting control panel File Manager. Also, some File Managers have quirks you need to be aware of, such as cPanel's ignoring numeric entries (you need to check/uncheck the boxes).
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
stokesarch
Newbie
*
Offline Offline

Posts: 3


« Reply #4 on: November 22, 2013, 07:39:59 AM »

I was using a ftp client, but I just tried it in the CPanel manager as you suggested.  I was able to change files to 444, however my Sub Accounts can still chmod and delete the files.
Logged
dwaynnyt
Intergalactic Cowboy
*****
Offline Offline

Posts: 66


« Reply #5 on: January 04, 2014, 10:26:32 AM »

This might be dangerous but for sure this will work. Try chmod 777.
« Last Edit: January 04, 2014, 10:30:56 AM by dwaynnyt » Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5809



« Reply #6 on: January 04, 2014, 06:26:40 PM »

Lunarpages does not allow 777 ("world writable") directories or files (at least, on shared servers). Actually, any permissions with "w" set for the third permission ("other"/"world") should fail.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: