LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-13-2005, 11:39 AM   #1
kwickcut
Member
 
Registered: Nov 2004
Posts: 136

Rep: Reputation: 20
chmod problem with proftpd


i am running mandrake 10.0 offical power pack and i finally got my proftpd to connect from an outside client but now i am haveing trouble getting the ftp client to chmod my files all i get it this

[L] SITE CHMOD 777 install.php
[L] 550 install.php: Operation not permitted
[L] PASV
[L] 227 Entering Passive Mode (xxx,xxxx,xxx,xxx,xxx).
[L] Opening data connection IP: xxx.xxx.x.xxx PORT: 33649
[L] LIST -al
[L] 150 Opening ASCII mode data connection for file list
[L] 226 Transfer complete.
[L] List Complete: 7 KB in 0.06 seconds (118.8 KB/s)
this is the config file


Code:
# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server 
# and a single anonymous login.  It assumes that you have a user/group 
# "nobody" and "ftp" for normal operation and anon. 

ServerType         standalone 
DefaultServer on 

# Allow FTP resuming. 
# Remember to set to off if you have an incoming ftp for upload. 
AllowStoreRestart on 

# Port 21 is the standard FTP port. 
Port 21 

# Umask 022 is a good standard umask to prevent new dirs and files 
# from being group and world writable. 
Umask 022 

# To prevent DoS attacks, set the maximum number of child processes 
# to 30.  If you need to allow more than 30 concurrent connections 
# at once, simply increase this value.  Note that this ONLY works 
# in standalone mode, in inetd mode you should use an inetd server 
# that allows you to limit maximum number of processes per service 
# (such as xinetd). 
MaxInstances         30 

# Set the user and group under which the server will run. 

# To cause every FTP user to be "jailed" (chrooted) into their home 
# directory, uncomment this line. 
#DefaultRoot ~ 

# Normally, we want files to be overwriteable. 
AllowOverwrite on 

# Bar use of SITE CHMOD by default 
<Limit CWD ALL> 
Allow all 
AllowGroup discipl0 
AllowUser discipl0 
AllowAll 
</Limit> 

# Needed for NIS. 

PersistentPasswd              off 

# Default root can be used to put users in a chroot environment. 
# As an example if you have a user foo and you want to put foo in /home/foo 
# chroot environment you would do this: 
# 
# DefaultRoot /home/foo foo 
AllowForeignAddress on 
<Anonymous /home/discipl0> 
User discipl0 
UserAlias anonymous ftp 
Group discipl0 
GroupOwner discipl0 
UserOwner discipl0 
</Anonymous> 
Group discipl0 
User discipl0 
DefaultChdir home/discipl0/bid/ 
AccessGrantMsg "welcome asshole" 
DeferWelcome on
i have tryed everything i can think of how do i set this up so i can chmod the files i need to through ftp client thanks



kwick
 
Old 02-13-2005, 08:24 PM   #2
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
I think you need the "AllowChmod directive"

Read the proftpd docs. Its listed there and took me 3 minutes to find it using google.

 
Old 02-13-2005, 11:32 PM   #3
kwickcut
Member
 
Registered: Nov 2004
Posts: 136

Original Poster
Rep: Reputation: 20
thanks for the info but i have tryed that and still cant get it to work i have reworked
the config file and still no go this is what i have changed

Code:
# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName			"ProFTPD Default Installation"
ServerType			standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask				022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances			30

# Set the user and group under which the server will run.
User discipl0
Group discipl0

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite		on

# Bar use of SITE CHMOD by default
<Limit CWD MKD RNFR DELE RMD RETR STOR ALL>
  AllowAll
</Limit>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous /home/discipl0>
User discipl0
Group discipl0

  # We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

  # Limit the maximum number of anonymous logins
MaxClients 10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
DisplayLogin welcome.msg
  DisplayFirstChdir		.message

  # Limit WRITE everywhere in the anonymous chroot
<Limit CWD MKD RNFR DELE RMD RETR STOR ALL>
    AllowAll
  </Limit>
RootLogin on
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
GroupOwner discipl0
UserOwner discipl0
</Anonymous>

<Global>
RootLogin on
</Global>
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on


kwick
 
Old 02-13-2005, 11:36 PM   #4
sgrayban
Member
 
Registered: Nov 2004
Location: Spokane, WA
Distribution: Debian 6.0
Posts: 369

Rep: Reputation: 30
Have you googled for it?

I found many issues dealing with this.
 
  


Reply



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
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
ProFTPD CHMOD bullshit Linux - Networking 0 05-10-2004 01:30 AM
CHMOD problem michn77 Linux - Newbie 0 02-12-2004 05:15 AM
Proftpd and CHMOD bmh.01 Linux - Software 0 05-31-2003 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:55 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