- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: canot chdir to a directory
Operating System - HP-UX
1747984
Members
4515
Online
108756
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-27-2011 09:15 PM
тАО03-27-2011 09:15 PM
Dear Gurus,
I tried to crete one chroot jail environemnt for one of the user,user1 ,however the user was instead being logged in to / and not the chroot /, as the case should be.i used this script /opt/ssh/utils/ssh_chroot_setup.sh.
my os version is 11.31.This could have happened as the chroot user,user1, being created might not have had access to the directory, which belongs to user2.
So , i added another user whose primary group is same as the user2 with restricted shell
useradd -g winstall -s /usr/bin/rsh -d /tango/INB_UAT1/chrlie/Batch/AllBatch/data/reports/jrxml raritan
now raritan is also logged in to the system as / , and not at his home directory , which should be /tango/INB_UAT1/chrlie/Batch/AllBatch/data/reports/jrxml.The error that shows while login is "Could not chdir to home directory /inbdata/INB_UAT1/EBUATP4/Batch/AllBatch/data/ reports/jrxml: Permission denied"
but :
apple1:#ls -ld /tango/INB_UAT1/charlie/Batch/AllBatch/data/reports/jrxml/
drwxrwxrwx 11 user3 winstall 10240 Mar 27 16:33
/tango/INB_UAT1/charlie/Batch/AllBatch/data/reports/jrxml/
Please suggest ,
Regards,
I tried to crete one chroot jail environemnt for one of the user,user1 ,however the user was instead being logged in to / and not the chroot /, as the case should be.i used this script /opt/ssh/utils/ssh_chroot_setup.sh.
my os version is 11.31.This could have happened as the chroot user,user1, being created might not have had access to the directory, which belongs to user2.
So , i added another user whose primary group is same as the user2 with restricted shell
useradd -g winstall -s /usr/bin/rsh -d /tango/INB_UAT1/chrlie/Batch/AllBatch/data/reports/jrxml raritan
now raritan is also logged in to the system as / , and not at his home directory , which should be /tango/INB_UAT1/chrlie/Batch/AllBatch/data/reports/jrxml.The error that shows while login is "Could not chdir to home directory /inbdata/INB_UAT1/EBUATP4/Batch/AllBatch/data/ reports/jrxml: Permission denied"
but :
apple1:#ls -ld /tango/INB_UAT1/charlie/Batch/AllBatch/data/reports/jrxml/
drwxrwxrwx 11 user3 winstall 10240 Mar 27 16:33
/tango/INB_UAT1/charlie/Batch/AllBatch/data/reports/jrxml/
Please suggest ,
Regards,
FrogIsDeaf
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2011 09:42 PM
тАО03-27-2011 09:42 PM
Solution
There's probably at least one directory on the path from / to the chrooted users' home directories that is not accessible to those users.
Please run:
ll /tango
ll /tango/INB_UAT1
ll /tango/INB_UAT1/charlie
ll /tango/INB_UAT1/charlie/Batch
ll /tango/INB_UAT1/charlie/Batch/AllBatch
.. etc. all the way to the users' home directories.
The access (x) permissions are the important ones: if the user does not have access permission for all the parent directories of his home directory, the home directory is not accessible.
MK
Please run:
ll /tango
ll /tango/INB_UAT1
ll /tango/INB_UAT1/charlie
ll /tango/INB_UAT1/charlie/Batch
ll /tango/INB_UAT1/charlie/Batch/AllBatch
.. etc. all the way to the users' home directories.
The access (x) permissions are the important ones: if the user does not have access permission for all the parent directories of his home directory, the home directory is not accessible.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2011 02:56 AM
тАО03-28-2011 02:56 AM
Re: canot chdir to a directory
Dear Matti ,
You solution is right on the spot , as they are most of the times.
Soluiton was a chmod -R ug+x ./directory
Regards,
Rahul
You solution is right on the spot , as they are most of the times.
Soluiton was a chmod -R ug+x ./directory
Regards,
Rahul
FrogIsDeaf
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP