LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2008, 12:42 PM   #1
rbblue
LQ Newbie
 
Registered: May 2008
Posts: 13

Rep: Reputation: 0
wu-ftpd is allowing access to /


hey all,

when i first login to the server im put to my home directory.. but if i issue the command cd /

it puts me to the / directory.

how do i stop that?
 
Old 06-03-2008, 05:14 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
That is normal behavior of ftp software.

You can stop it by following the 'how to' instructions on "running ftp in a chroot jail". If tldp.org can't help, I'm sure google can.
 
Old 06-03-2008, 07:31 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You also might want to use a much more secure FTP daemon like vsftp, which allows you to chroot users to their home directories without running the daemon in an FTP jail.
 
Old 06-03-2008, 08:03 AM   #4
rbblue
LQ Newbie
 
Registered: May 2008
Posts: 13

Original Poster
Rep: Reputation: 0
i was unable to get vsftp to allow the chown or chmod commands.

where as wu-ftpd does.
 
Old 06-03-2008, 02:57 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Vsftpd does allow chown and chmod, but only under certain circumstances. Any files uploaded anonymously can be chowned to a different user. Named users can use chmod, but anonymous users can't, for obvious reasons.

In general, I'd be concerned with wu-ftp. I don't think it has been maintained for a very long time, and I know there were a LOT of security issues with it.
 
Old 06-03-2008, 02:59 PM   #6
rbblue
LQ Newbie
 
Registered: May 2008
Posts: 13

Original Poster
Rep: Reputation: 0
named users...

as in users that were logged into the system and have a real system user account?
 
Old 06-03-2008, 03:17 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Yes, I believe that users that have a real system account can do it. I've never used it, but that is my understanding of this entry from the vsftpd man page:


Code:
chmod_enable
    When enables, allows use of the SITE CHMOD command. NOTE! This only applies to local users. Anonymous users never get to use SITE CHMOD.
 
Old 06-03-2008, 03:18 PM   #8
rbblue
LQ Newbie
 
Registered: May 2008
Posts: 13

Original Poster
Rep: Reputation: 0
then i need to take a look at my configure file.

for i was not able to do use that command on a real system account.
 
  


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
Samba no longer allowing access Keithj Linux - Networking 10 06-24-2007 10:19 AM
Samba NOT allowing access cucolin@ Linux - Software 4 11-09-2006 03:34 PM
allowing rsh access uerden Linux - Networking 5 11-08-2006 02:15 PM
Allowing port access to non-root joosep Linux - Networking 1 08-05-2005 09:24 AM
Allowing only SFTP access vanibhat Linux - Enterprise 8 06-30-2005 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration