- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: setting the user root directory
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
01-27-2004 07:39 AM
01-27-2004 07:39 AM
setting the user root directory
I am attempting to set up a few users with restricted directories. When they ftp in they are able to move around freely. So I amattempting to use the suggestions given in the man pages of ftpaccess. Here is the changes I have made to the passwd file..
gsds:u2GKr011vo5RU:515:515:GSDSRepository:/NGCS/./gsds:/bin/ksh
I want to not have the ability to move past the NGCS directory. I amnot sure what I am forgetting but any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 07:47 AM
01-27-2004 07:47 AM
Re: setting the user root directory
You will also have to configure your ftpaccess file.
Create a group called 'guest' (or anything that you want) and add it as a guestgroup in ftpaccess file. Make gsds as a member of this guest group.
guestgroup guest
Try to ftp again. When you ftp you should see the following message.
230 User gsds logged in. Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>pwd
You can also put other restrictions like
chmod no guest
delete no guest
etc.,
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 08:13 AM
01-27-2004 08:13 AM
Re: setting the user root directory
Ok .. I must be opushing my luck here. What would that entry look like. I am confused about the class entry and where the group is set etc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 08:14 AM
01-27-2004 08:14 AM
Re: setting the user root directory
Sorry my file looks something like this right now ..
class local real,anonymous *.domain 0.0.0.0
class remote real,anonymous *
# Display secure Nortel Networks banner
banner /etc/ftpd/ftpd_banner
suppresshostname yes
suppressversion yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 10:00 AM
01-27-2004 10:00 AM
Re: setting the user root directory
$grep guest /etc/group
guest::2001:gsds
Your ftpaccess should look like this
class local real,anonymous *.domain 0.0.0.0
class remote real,anonymous *
# Display secure Nortel Networks banner
banner /etc/ftpd/ftpd_banner
suppresshostname yes
suppressversion yes
guestgroup guest
Try 'ftp' to verify it.
-Sri