- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: I connect to sftp server error "error looking ...
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
тАО03-16-2010 06:01 AM
тАО03-16-2010 06:01 AM
I connect to sftp server error "error looking up user groups"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 06:54 AM
тАО03-16-2010 06:54 AM
Re: I connect to sftp server error "error looking up user groups"
Not a lot to go on here.
But I believe the problem is either with the process used to chroot the user. Necessary files/links may be inaccessible.
Or if you used the hp provided script, there may be a problem with that.
There should be something in the syslog.log
Further investigation might help pinpoint the cause of the problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 06:56 AM
тАО03-16-2010 06:56 AM
Re: I connect to sftp server error "error looking up user groups"
environment, some program may be trying to
find "/etc/passwd" (or "/etc/group", or
something), but it can't find the real
"/etc/passwd" (or whatever), because "/" in
the "chroot" environment is not the real "/".
You may need to create a "/etc/passwd" (or
whatever) file in the "chroot" "/" tree.
If that is the problem, then this "chroot"
"/etc/passwd" file would not need any actual
password data, only the basic name and number
data.
This sort of thing is commonly done in a
plain FTP server "chroot" environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 07:03 AM
тАО03-16-2010 07:03 AM
Re: I connect to sftp server error "error looking up user groups"
Need copy /usr/bin/groups to directory /newroot/bin
/newroot - ChrootDirectory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 07:11 AM
тАО03-16-2010 07:11 AM
Re: I connect to sftp server error "error looking up user groups"
> /newroot/bin
Or, if not data files, then programs. It's
always something.
When you start copying programs into "chroot"
trees, you may do better with programs from
"/sbin". Otherwise, you may find that you
also need to start dragging in parts of the
run-time library from "/usr/lib".
On the bright side, if you have multiple
"chroot" trees on the same file system, then
you can use hard links instead of actual
copies of everything, which can save some
space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 08:07 PM
тАО03-16-2010 08:07 PM
Re: I connect to sftp server error "error looking up user groups"
Prior to v5.x, there was no support for chrooting the sftp server as part of the services.
By the error, I am also assuming that you have included the "Match Group" directive in your sshd_config, and the group file wasn't in the chrooted environment.
If you can get v5.x, you can do the following:
Subsystem sftp internal-sftp -f LOCAL2 -l VERBOSE
Match Group sftpusers
ForceCommand internal-sftp -f LOCAL2 -l VERBOSE
ChrootDirectory /sftpchroot
AllowTcpForwarding no
This would let you use the internal sftp server, log to LOCAL2 facility in syslog and chroot without having a huge chrooted environment built.
The group file doesn't need to be in there. The only thing you would need would be a copy of /dev/log for the syslog events to go to.
Don