- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to restrict users to navigate when connect...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 03:09 AM
06-09-2000 03:09 AM
Anonymous user's root directory is /home/ftp.
Just like this I want to make ordinary users root directory as /home/user_name or any other directory. And he should not access for example /home Is it possible at HPUX 10.20?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 03:21 AM
06-09-2000 03:21 AM
Re: How to restrict users to navigate when connected with ftp.
ftpd -l -v
Then issue inetd -c
This will cause ftpd to log all connection information to /var/adm/syslog/syslog.log including who loggs in to ftp, what files are copied, and all cd information.
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 04:59 AM
06-09-2000 04:59 AM
Re: How to restrict users to navigate when connected with ftp.
It describes all the things you can configure ftpd(1M) to do.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 05:03 AM
06-09-2000 05:03 AM
Re: How to restrict users to navigate when connected with ftp.
http://www.wu-ftpd.org/wu-ftpd-faq.html
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 05:12 AM
06-09-2000 05:12 AM
Re: How to restrict users to navigate when connected with ftp.
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2000 06:13 PM
06-19-2000 06:13 PM
Re: How to restrict users to navigate when connected with ftp.
Another possibility would be to make use of the restricted shell or /usr/bin/rsh as the default login shell during ftp accesses.
With the use of restricted shell, the user can only view and access his own home directory and subdirectories but not others.
Regards.
Steven Sim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2000 11:22 PM
06-20-2000 11:22 PM
Re: How to restrict users to navigate when connected with ftp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2000 05:46 AM
06-21-2000 05:46 AM
Re: How to restrict users to navigate when connected with ftp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2000 03:12 AM
06-27-2000 03:12 AM
SolutionMaybe this helps:
Configuring Anonymous ftp
Anonymous ftp allows users who do not have an account on a given system to send files to, and retrieve them from, that system.
Step 1. Add user ftp to /etc/passwd, for example:
ftp:*:500:1:anonymous ftp:/home/ftp:/usr/bin/false
The password field should be *, the group membership should be guest, or, as in this example, other, and the login shell should be /usr/bin/false.
In this example, user ftp's user ID is 500, and the anonymous ftp directory is /home/ftp.
Step 2. Create the anonymous ftp directory:
Create the ftp home directory that you referred to in the /etc/passwd file, for example:
mkdir /home/ftp
Create the subdirectory /usr/bin under the ftp home directory, for example:
cd /home/ftp
mkdir usr
cd usr
mkdir bin
Step 3. Copy the ls and pwd commands from /sbin and /usr/bin (respectively) to ~ftp/usr/bin, and set the permissions on the commands to executable only (mode 0111):
cp /sbin/ls /home/ftp/usr/bin
cp /usr/bin/pwd /home/ftp/usr/bin
chmod u=x,g=x,o=x /home/ftp/usr/bin/ls
chmod u=x,g=x,o=x /home/ftp/usr/bin/pwd
Step 4. Set the owner of the ~ftp/usr/bin and ~ftp/usr directories to root, and set the permissions to not writable (mode 0555):
chown root /home/ftp/usr/bin
chmod u=rx,g=rx,o=rx /home/ftp/usr/bin
chown root /home/ftp/usr
chmod u=rx,g=rx,o=rx /home/ftp/usr
Step 5. Create the subdirectory etc under the ftp directory, for example:
cd /home/ftp
mkdir etc
Step 6. Copy /etc/passwd and /etc/group to ~ftp/etc.
These files are required by the ls command, to display the owners of files and directories under ~ftp.
cp /etc/passwd /home/ftp/etc
cp /etc/group /home/ftp/etc
Step 7. In all entries in /home/ftp/etc/passwd, replace the password field with an asterisk (*), and delete the shell field, for example:
ftp:*:500:1:anonymous ftp:/home/ftp: tom:*:8996:20::/home/tom:
Step 8. In all entries in /home/ftp/etc/group, replace the password field with an asterisk (*):
users:*:20:acb guest:*:21:ftp
Step 9. Change the owner of the files in ~ftp/etc to root, and set the permissions to read only (mode 0444):
chown root /home/ftp/etc
chmod u=r,g=r,o=r /home/ftp/etc
Step 10. Create a directory pub under ~ftp, and change its owner to user ftp and its permissions to writable by all (mode 0777).
Anonymous ftp users can put files in this directory to make them available to other anonymous ftp users.
mkdir /home/ftp/pub
chown ftp /home/ftp/pub
chmod u=rwx,g=rwx,o=rwx /home/ftp/pub
Step 11. Create a directory dist under ~ftp. Change its owner to root and its permissions to writable only by root (mode 0755).
mkdir /home/ftp/dist
chown root /home/ftp/dist
chmod u=rwx,g=rx,o=rx /home/ftp/dist
Step 12. Change the owner of user ftp's home directory to root and the permissions to not writable (mode 0555):
chown root /home/ftp
chmod u=rx,g=rx,o=rx /home/ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2000 06:02 AM
06-27-2000 06:02 AM
Re: How to restrict users to navigate when connected with ftp.
Alan Riggs asks me using soft links. I did not tried this because there are lots of programs called from inside source code. It will need a great amount of work to determine them. I only need to prevent users while they are connected by ftp.
M.Boon says to use anonymous ftp. I am already using this method. But everone can see others files. So there is security porblem. I heard smt that it is possible to make users to login with their username/passwd again after they are logged with anonymous. This may help but it will be diffucult to educate so many users to do like this. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2000 06:50 AM
06-27-2000 06:50 AM
Re: How to restrict users to navigate when connected with ftp.
What does the file /home/ftp/etc/passwd
looks like ? Can you give me some more information ?
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2000 07:14 AM
06-27-2000 07:14 AM
Re: How to restrict users to navigate when connected with ftp.
Regards,
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2000 09:38 AM
06-27-2000 09:38 AM
Re: How to restrict users to navigate when connected with ftp.
1) enable anonymous ftp
2) create directories underneath the ftp_home for each user or group of users.
3) set permissions and ownership on these directories as you desire.
4) cp /etc/passwd /
5) cp /etc/group /
6) edit the ftp passwd and group files to include only those users/groups you siwh to have anonymous ftp access. Set the home directories to be the directories you created in step 2.
7) users connect as ftp (anonymous), then issue "user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2000 12:06 PM
06-27-2000 12:06 PM
Re: How to restrict users to navigate when connected with ftp.
I saw your anser several times, I am going to try your program and maybe it convince me.
Regards,
Marcel