LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12:40 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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, 12: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, 01:09 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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, 02:05 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,617

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
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, 02:18 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
chmod to remove their write privileges, now thats clever, i like that!
 
Old 02-10-2011, 02:22 PM   #6
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Will this cause my logs to blow up or anything like that though?
 
Old 02-11-2011, 09:30 AM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,617

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
log explosions?

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


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
Konqueror Renaming Folder bug netpumber Slackware 8 01-31-2009 09:50 PM
"Mount" a folder into my ftp folder ? 0001001 Linux - General 3 11-27-2005 04:23 AM
setting up ftp for default web folder stasjohn Linux - Newbie 6 08-18-2004 07: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 02:26 AM
Renaming folder jeffpoulsen Linux - General 2 10-21-2002 01:54 PM

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

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