- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding user with restrictions
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-07-2004 02:29 AM
06-07-2004 02:29 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 02:37 AM
06-07-2004 02:37 AM
SolutionYou can restrict to a perticular directory by mentioning PATH=/restrictedDIR in .profile file of user's home directory and change ownership of the .profile to root:bin
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 02:44 AM
06-07-2004 02:44 AM
Re: Adding user with restrictions
To restrict the user to have only ftp access, ley the login shell for the user be set as /usr/bin/false and add this in the /etc/shells file. Also you can setup ftpaccess to set restrictions for the user.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073346999
The itrc doc id is BC0814KBRC00007719.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 03:05 AM
06-07-2004 03:05 AM
Re: Adding user with restrictions
useradd -m -s /usr/bin/false
edit password file using 'vipw' command and change the home directory of the user to /home/ftpuser/./ ,i.e., add a /./ at the end of whatever is already there
add /usr/bin/false to /etc/shells if it is not there already
if exists edit /etc/ftpd/ftpaccess file and add these lines :
class all ftpuser,guest *
guestgroup none
chmod 444 /etc/ftpd/ftpaccess
chown bin:bin /etc/ftpd/ftpaccess
vi /etc/inetd.conf
find the line beginning with ftp and if is not there already add "-a" without the quotes of course to the end. It should look like this :
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
/usr/sbin/inetd -k
/usr/sbin/inetd -l
(which restarts inetd with the newly changed settings if you changed anything)
mkdir ~ftpuser/usr
mkdir ~ftpuser/usr/bin
chown bin:bin ~ftpuser/usr
chmod 555 ~ftpuser/usr
chown root:bin ~ftpuser/usr/bin
chmod 555 ~ftpuser/usr/bin
cp -p /sbin/ls ~ftpuser/usr/bin/ls
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 03:07 AM
06-07-2004 03:07 AM
Re: Adding user with restrictions
useradd -m -s /usr/bin/false ftpuser
(must find coffeee...)
UNIX because I majored in cryptology...