- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to create one user account which only can ...
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
Discussions
Discussions
Forums
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
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
тАО04-16-2009 01:01 AM
тАО04-16-2009 01:01 AM
BR
eric
Solved! Go to Solution.
- Tags:
- telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 01:08 AM
тАО04-16-2009 01:08 AM
SolutionJust edit the last field of that users entry at /etc/passwd file
example
smith:*:100:100:8A-74(office):/home/smith:/usr/bin/sh
make it
smith:*:100:100:8A-74(office):/home/smith:/usr/bin/false
now smith can't login via telnet or ssh.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 01:14 AM
тАО04-16-2009 01:14 AM
Re: how to create one user account which only can ftp and cannot telnet
Normally user shell is defining where the user should go upon login. If you specify null shell (/usr/bin/false), then that user cannot get any shell.
When you create a user specify null shell.
#useradd -s /usr/bin/false username
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 01:36 AM
тАО04-16-2009 01:36 AM
Re: how to create one user account which only can ftp and cannot telnet
Thanks for your kind inputs, but i cannot ftp or fstp now after change " :/usr/bin/sh " to " :/usr/bin/false " .
The error show up -->
Fatal : unable to initialise SFTP : could not connect
Please help me
BR
eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 01:43 AM
тАО04-16-2009 01:43 AM
Re: how to create one user account which only can ftp and cannot telnet
You can do it from sam and give the user permission for ftp and deiny perpermission for telnet.
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 01:56 AM
тАО04-16-2009 01:56 AM
Re: how to create one user account which only can ftp and cannot telnet
You'll probably have to include that in /etc/shells.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 02:05 AM
тАО04-16-2009 02:05 AM
Re: how to create one user account which only can ftp and cannot telnet
Which function in sam , wouldy you kindly give the path of sam . Thanks a lot.
BR
eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 02:16 AM
тАО04-16-2009 02:16 AM
Re: how to create one user account which only can ftp and cannot telnet
How to "You'll probably have to include that in /etc/shells" .
Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 02:23 AM
тАО04-16-2009 02:23 AM
Re: how to create one user account which only can ftp and cannot telnet
You can modify this file /etc/shells if /usr/bin/false is not there then open this file and add this line /usr/bin/false
save the file and try...
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 02:24 AM
тАО04-16-2009 02:24 AM
Re: how to create one user account which only can ftp and cannot telnet
find similar thread in below link.
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1239877142211+28353475&threadId=957193
Suraj