LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2006, 12:35 AM   #1
Crog
LQ Newbie
 
Registered: May 2006
Location: Southern California
Distribution: openSuSE 10.1
Posts: 24

Rep: Reputation: 15
Question FTP permissions...HELP!!!


I really need some help here...

I'm using openSuSE 10.0 (text mode) and Pure-FTPd.

How do I set permissions so that any file uploaded to a set directory (home directory) is automatically granted the same permissions as the folder itself?

**************************
(as root) :
groupadd forumftp
useradd -g forumftp -d /dev/ -s /etc forum
pure-pw useradd forumuser -u forum -d /home/forum
pure-pw mkdb

cd /home/forum
mkdir shared

cd ..
(takes me back to directory: /home)

chmod 770 forum -R

**************************

I then type dir, and check the forum directory and shared subdirectory, both have 770 permissions (owner: read/write/execute; group: read/write/execute; all users: none)...

I then get on my Windows machine, connect to my ftp with IE, I right click > properites on the "shared" folder, I notice it does have 770 permissions...I can rename it, delete it...but when I select to create a New Folder (properties tells me it has 000 permissions), when I try to delete:

550 Can't change the directory to <directory name>: Permission denied

When I uploaded a .gif file, it has 014 permissions (owner: nothing; group: execute; all users: read)

If I double click on the .gif it opens up a new window with "Page cannot be displayed..."


Can somebody please please please explain to me how to set up FTP permissions so that the logged in user can upload files and create folders in home directory and subdirectories that RETAIN the original permissions?

I'm still very new to this ftp stuff including Linux, so take it easy on me
 
Old 05-28-2006, 01:10 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
how about using umasks?
Sorry I do not use Pure-Ftpd, but other FTP servers such as proftpd and vsftpd include umask support. I think Pure-Ftpd does too.
 
Old 05-28-2006, 01:30 AM   #3
Crog
LQ Newbie
 
Registered: May 2006
Location: Southern California
Distribution: openSuSE 10.1
Posts: 24

Original Poster
Rep: Reputation: 15
I set my umask to 770:770 in pure-ftpd.conf
 
Old 05-28-2006, 01:55 AM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
I don't know but is it because of the lack of support of passive mode support of IE, have you checked it out with firefox?
 
Old 05-28-2006, 01:59 AM   #5
Crog
LQ Newbie
 
Registered: May 2006
Location: Southern California
Distribution: openSuSE 10.1
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for bringing up umask, I kind of thought it was exactly like CHMOD permissions (maybe it is, unless I'm misunderstanding it)...

But anyways, I read up on it, and it turns out umask should be 077:077, and it works!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP, permissions help Odins_Son Linux - Newbie 9 02-21-2006 05:09 PM
FTP permissions jeucken Linux - Networking 11 01-09-2006 06:44 AM
FTP Permissions varunbihani Linux - General 2 03-24-2005 09:34 AM
ftp permissions race Linux - Networking 0 01-15-2004 01:33 PM
Permissions on FTP ntloser Linux - Security 1 12-28-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration