LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-10-2011, 01:40 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Rep: Reputation: 48
Renaming a folder which is default folder for FTP account


I have an FTP account that when they log in they go to /var/ftp/uploads according to etc/passwd.

I want to temporarily stop the uploads from coming in, but don't want to change the password on that account. If I rename the uploads folder to something else, what will happen when they go to log in since the /var/ftp/uploads path is no longer valid?
 
Old 02-10-2011, 01:49 PM   #2
dcatiii
LQ Newbie
 
Registered: Apr 2010
Location: Dallas, TX
Distribution: Arch, Ubuntu, Redhat
Posts: 26

Rep: Reputation: 0
I believe it will either drop the individual in their home directory or in to the root directory (depending on the ftp server type and config)
 
Old 02-10-2011, 02:09 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
Yeah, home directory, thats what i meant to say. that path is set at the home directory.

Really i'm just trying to figure out the most painless way to prevent uploads from a certain person for a while, temporarily
 
Old 02-10-2011, 03:05 PM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,388

Rep: Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961
ftp?

Not sure why you are using FTP anyway, but...

Why not just 'chmod' that folder to remove their WRITE privelages. Remember to consider removing write from the files as well, otherwife they may be able to OVERWRITE a file with a new version. (I have not tested this.)

This is more secure than renaming their home folder, since a lost home folder can dump them into the root. I am not sure you really want their files appearing in the root.
 
Old 02-10-2011, 03:18 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
chmod to remove their write privileges, now thats clever, i like that!
 
Old 02-10-2011, 03:22 PM   #6
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
Will this cause my logs to blow up or anything like that though?
 
Old 02-11-2011, 10:30 AM   #7
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,388

Rep: Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961
log explosions?

Well, if it does it will not do so any worse than if you renamed the folder.
 
  


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
Konqueror Renaming Folder bug netpumber Slackware 8 01-31-2009 10:50 PM
"Mount" a folder into my ftp folder ? 0001001 Linux - General 3 11-27-2005 05:23 AM
setting up ftp for default web folder stasjohn Linux - Newbie 6 08-18-2004 08:47 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 03:26 AM
Renaming folder jeffpoulsen Linux - General 2 10-21-2002 02:54 PM

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

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