Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I get a problem that I set a symbolic to a folder in a user directory, but I can't see the linked folder using IE6, while I can see and go into the linked folder using ftp client, like cute ftp. Do anyone has the same experience before???
It's the way IE interprets the symlink. You would be better off just using connad line instead of IE. You may want to try Firefox or Opera or Netscape if you insist on using a browser.
My ftp is open to my friends, and they usually use browser (mostly IE) for ftp. So, I can't escape for that.
Is there any work around?
I know that using "mount --bind" to mount the share folder in user home directory works. But if I mount the folder for every user, it results in many mounts (i guess at least 40), will it post a problem for so many "mounts"???
Here is what I do for the folks I let use my FTP server, I make their home dir the folder I want to share, /ftp in my case. I have a dir named Upload under it where they can upload to but not read from, all other folders they can read from but not write to. Permissions look like this:
-(/ftp:#)-> ll
total 224
drwxr-xr-x 3 root root 4096 Jan 14 2003 10000 Maniacs
drwxr-xr-x 3 root root 4096 Jul 2 2003 Allman Brothers
[SNIP - too many directories to list here...]
drwxr-x-wt 4 root root 4096 May 21 17:35 Uploads
drwxr-xr-x 3 root root 4096 May 21 17:35 Utilities
drwxr-xr-x 3 root root 4096 Jan 14 2003 Warren Haynes
drwxr-xr-x 4 root root 4096 Jan 14 2003 Widespread Panic
Note the permissions on the Uploads folder. They can upload but can't see anything in the dir, even stuff they uploaded. The users have a login shell of /dev/null so they can only login to FTP, never ssh or even locally. All dirs and files under /ftp are owned by root with mode 755 set. All home dirs for FTP users are set to /ftp. I also chroot all ftp users in the /etc/ vsftpd.chroot_list file. This prevents users from walking the tree and seeing things they should not. After the first login of each user, there will be some hidden files created in /ftp that can be safely deleted.
In your case, all user directories are in the /ftp folder, that means one user can see others home directories name, right? If yes, I think it is not desirable for browsing. If NO, could you tell me how to do that?
Also, I would like to know how to make a user to login the first directory to /ftp instead of their home directory??
As I said, when I create a user, I set their home dir to /ftp. Everyones home dir is /ftp. They can only download from all folders under /ftp except for the folder named Uploads. Everyone sees the exact same dir structure and the exact same files. I set it up for music/file sharing, not as a playground for people to learn Linux in. I set it up to be as secure as possible for me...
P.S. if user is in chroot file, they go to their home dir (/ftp) and can not walk up the directory tree. They should go to thier home dir on login, even if not chrooted.
My situation is a little bit different from yours., as I allow some of the users to have private storage and host website in my server, that I cannot set all user home dir to /ftp. Do u have any suggestion for me?
What I am really want to do is:
1) Some of the users have their own private dir
2) Some of the users have a dir for website
3) There maybe a few group of users, for each group they have a group level sharing dir
4) A public sharing dir for all
Can a user get access to all these with only one login???
Sure it can be done. This is Linux! Anything is possible.
It's just a question of setting rights on the directories/files. All users will go to home dir (/home/user1) when logging in. They can then walk the dir structure to whatever they have rights to, ie. /var/www/html/mywebserver or /var/group1-sharedfiles or /tmp/everyone-share. You need to set permisions on a user level for private user dirs/files and group membership for shared dirs/files. Read this article for an overview.
Originally posted by TheOther1 Sure it can be done. This is Linux! Anything is possible.
It's just a question of setting rights on the directories/files. All users will go to home dir (/home/user1) when logging in. They can then walk the dir structure to whatever they have rights to, ie. /var/www/html/mywebserver or /var/group1-sharedfiles or /tmp/everyone-share. You need to set permisions on a user level for private user dirs/files and group membership for shared dirs/files. Read this article for an overview.
I know that its possible to do that. However, what I really want to do is when a user log in, he can get to all the dir in only one click instead of browsing the dir tree, what I am thinking to set is sth like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.