LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2003, 05:13 AM   #1
exalik
Member
 
Registered: Mar 2003
Location: PARIS / FRANCE
Distribution: Mandrake 9.2rc2
Posts: 49

Rep: Reputation: 15
Angry Directory permissions problem


Hello,

I use vsftpd for ftp access on my server.
It is configured to jail users on a specific directory but it doesn't work properly.
If i log with root account, i can access to the directory so no problem but if i log with user account vsftpd tell me the jail doesn't success.
The directory user and group owners is : root and root
I tried to change it with :
chown -R ftp /directory
chgrp -R ftp /directory
but it always give me the error "operation is not permitted"

What append ???

Please help me.

Exalik
 
Old 09-30-2003, 06:17 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
try posting the output for 'ls -l' for that directory (and the next one above it).
 
Old 09-30-2003, 12:20 PM   #3
exalik
Member
 
Registered: Mar 2003
Location: PARIS / FRANCE
Distribution: Mandrake 9.2rc2
Posts: 49

Original Poster
Rep: Reputation: 15
[root@xxxxx security]# ls -l /home/pub
total 651016
-rwxr--r-- 1 root root 549 avr 8 21:07 dhcpd.conf*
-rwxr--r-- 1 root root 3307 aoû 26 06:04 firewall*
-rwxr--r-- 1 root root 59 mar 21 2003 lmhosts*
drwxr--r-- 3 root root 4096 jun 11 16:03 toto/
-rwxr--r-- 1 root root 12980 mai 9 12:45 smb.conf*
-rwxr--r-- 1 root root 3082 mar 29 2003 smbpasswd*
-rwxr--r-- 1 root root 97 avr 1 19:41 smbusers*
-rwxr--r-- 1 root root 666592080 mai 22 03:41 info*
-rwxr--r-- 1 root root 453 mai 17 09:31 readme*

[root@xxxxx security]# stat /home/pub
File: `/home/pub'
Size: 4096 Blocks: 8 IO Block: 4096 répertoire
Device: 307h/775d Inode: 1 Links: 3
Access: (0744/drwxr--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-09-30 19:12:38.000000000 +0200
Modify: 2003-09-30 19:12:38.000000000 +0200
Change: 2003-09-30 19:13:37.000000000 +0200

Do you need more ?
 
Old 09-30-2003, 12:28 PM   #4
leohuang
LQ Newbie
 
Registered: Sep 2003
Posts: 11

Rep: Reputation: 0
Directories MUST have x (execute) permission.

I suggest you to change the directory into 755(rwxr-xr-x). If you want to limit the user's list, change the permission to 751.
 
Old 09-30-2003, 02:30 PM   #5
exalik
Member
 
Registered: Mar 2003
Location: PARIS / FRANCE
Distribution: Mandrake 9.2rc2
Posts: 49

Original Poster
Rep: Reputation: 15
It's the same result :-(
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
directory permissions goodolday Linux - Newbie 6 04-28-2005 01:51 AM
Problem with permissions on a directory scuzzman Linux - Newbie 1 01-09-2005 04:45 AM
Directory Permissions Help artielnx Linux - Newbie 4 07-28-2004 02:25 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
directory permissions breadbin Linux - General 3 05-28-2003 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:46 AM.

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
Open Source Consulting | Domain Registration