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 08-31-2016, 02:21 AM   #1
Hunty
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Rep: Reputation: Disabled
Smile pure-ftpd centos global directory for all users


Hi All,
I have set up my ftp server, as indicated in this guide https://www.howtoforge.com/tutorial/...er-centos-7-2/
Everything is working perfectly now, but I need to set up a folder that is accessible to all the virtual users.
For example
if "exampleuser" logs in he should see his home directory, as well as a "global" directory.
Does anyone know how we can do this?
 
Old 08-31-2016, 02:29 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi

You could make that directory somewhere, and put a symlink to it in everybody's home directory.
 
Old 08-31-2016, 03:05 AM   #3
Hunty
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi Guttorm

Thanks for the fast response.I just thought there might have been an easier way as we need to make
+- 350 symlinks for this.

Thanks
Hunty
 
Old 08-31-2016, 03:37 AM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
You could make a script to do that, something like this:

Code:
for name in /home/* ; do 
ln -s /the/global/directory /home/$name/global
done
 
Old 08-31-2016, 03:50 AM   #5
Hunty
LQ Newbie
 
Registered: Sep 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi Guttorm

Will look into this and thanks so much for this.

Hunty
 
  


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
Jailing users with pure-ftpd old286 Linux - Newbie 6 06-17-2010 04:20 PM
pure-ftpd on centos 5 electric Linux - Software 1 03-05-2009 05:37 AM
I cannot use virtual users in pure-ftpd. kutlu Debian 0 01-05-2009 01:38 AM
pure-ftpd root directory rootking Linux - Server 4 08-17-2007 08:30 PM
pure-ftpd online users spotass Linux - Software 0 07-22-2004 11:33 AM

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

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