- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What's wrong with this 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
10-14-2004 06:30 AM
10-14-2004 06:30 AM
What's wrong with this directory?
$ pwd
/home/tuxedo
$ ls
$ ls -a
. .. .sh_history
$ ll
total 0
$ ll -d
at this point it hangs. I have to ctrl-c to get out. I have deleted and remade the directory. The user and group numbers seem to be ok. It is just certain commands that don't work. Here are the same commands when run as root.
[root] /home/tuxedo> pwd
/home/tuxedo
[root] /home/tuxedo> ls
.sh_history
[root] /home/tuxedo> ls -a
. .. .sh_history
[root] /home/tuxedo> ll
total 16
-rw------- 1 tuxedo tuxedo 164 Oct 14 12:09 .sh_history
[root] /home/tuxedo> ll -d
drwxr-xr-x 2 tuxedo tuxedo 96 Oct 14 11:48 .
As far as I can tell these are standard permissions for the directories. Can anyone tell me what's going on?
Another symptom (maybe) is that the user hangs after entering the password. I found out that the /etc/profile was running a mail -e command (just like all other users) and that is what was hanging. If I kill that process I get the prompt like this:
Password:
/etc/profile[105]: 20618 Terminated
$ pwd
/home/tuxedo
Other commands like whoami won't work either.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:33 AM
10-14-2004 06:33 AM
Re: What's wrong with this directory?
Have you checked the permissions on your /etc/passwd file? Make sure that it is world readable. What results do you get from running 'ls -la' as the regular user?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:53 AM
10-14-2004 06:53 AM
Re: What's wrong with this directory?
[root] /home/tuxedo> ls -la
total 32
drwxr-xr-x 2 tuxedo tuxedo 96 Oct 14 11:48 .
drwxr-xr-x 148 root root 8192 Oct 14 11:46 ..
-rw------- 1 tuxedo tuxedo 212 Oct 14 12:46 .sh_history
as the user I get hung:
$ pwd
/home/tuxedo
$ ls -la
total 32
and there it sits. This is a trusted system with NIS+ on HP-UX 11i. No other user is having a problem, and this user doesn't have a problem on other servers. Things look the same between the servers. Really strange to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 07:56 AM
10-14-2004 07:56 AM
Re: What's wrong with this directory?
# alias
autoload='typeset -fu'
cat=/usr/bin/cat
chmod=/usr/bin/chmod
command='command '
cp=/usr/bin/cp
date=/usr/bin/date
functions='typeset -f'
grep=/usr/bin/grep
history='fc -l'
integer='typeset -i'
local=typeset
ls=/usr/bin/ls
mv=/usr/bin/mv
nohup='nohup '
r='fc -e -'
stop='kill -STOP'
suspend='kill -STOP $$'
type='whence -v'
vi=/usr/bin/vi
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 08:46 AM
10-14-2004 08:46 AM
Re: What's wrong with this directory?
Our tuxedo user has suffered all manner of corruption over time, ( we seem to have hung tuxedo processes whenever we shutdown, and sometime have to cleanup broken files afterward)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 08:54 AM
10-14-2004 08:54 AM
Re: What's wrong with this directory?
-Cheers
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 08:56 AM
10-14-2004 08:56 AM
Re: What's wrong with this directory?
ls=/usr/bin/ls
I can put files into that directory. I just can't use ll to list them.
$ pwd
/home/tuxedo
$ touch test
$ env > test.env
$ alias > test.alias
$ ls
test test.alias test.env
$ ls -a
. .. .sh_history test test.alias test.env
$ ls -l
total 32
(hangs, use ctrl-c)
$ ls -n
total 32
-rw-r--r-- 1 777 777 0 Oct 14 14:27 test
-rw-r--r-- 1 777 777 283 Oct 14 14:28 test.alias
-rw-r--r-- 1 777 777 1386 Oct 14 14:28 test.env
$ ls -g
total 32
$
So it is a number to name translation thing?
The userid is 777 and the group is 777 as well. Both are called tuxedo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 09:02 AM
10-14-2004 09:02 AM
Re: What's wrong with this directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 09:46 AM
10-14-2004 09:46 AM
Re: What's wrong with this directory?
$ ls -n /etc/passwd
-r--r--r-- 1 0 3 722 Mar 17 2004 /etc/passwd
$ ll /etc/passwd
-r--r--r-- 1 root sys 722 Mar 17 2004 /etc/passwd
So the ll command works for files other than the user's own directory. hmmmm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 09:48 AM
10-14-2004 09:48 AM
Re: What's wrong with this directory?
the mail -e command is run from the default profile in /etc/profile. See the tail end of my original posting.
The user doesn't have a local .profile file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 09:53 AM
10-14-2004 09:53 AM
Re: What's wrong with this directory?
By any chance, the user's home directory automounted ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 10:11 AM
10-14-2004 10:11 AM
Re: What's wrong with this directory?
try mounting it some other directory say /mnt.
and then su to tuxedo and see if you are able to do "ls -l" on the directory.
2) Check to see if the /etc/profile is trying to mount something unkown to this current server? That might a possible case too.
Goodluck
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 12:27 PM
10-14-2004 12:27 PM
Re: What's wrong with this directory?
Also, it's worth while running this command once in a while to check the Trusted Systems Database (TCB entries):
authck -p
This will tell you if there is something wrong going on in your TCB files.
Hope this helps.
- Andy Gray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 12:49 PM
10-14-2004 12:49 PM
Re: What's wrong with this directory?
I have checked that it is only in the NIS+ tables; it is not in /etc/passwd.
I ran authck -p and did not get any hits on that user; however there were others that I will be looking into tomorrow.
I am just at a loss to figure out why the ls -l command fails, but the ls -n command works. Where does the -l command look for the user id and group id name?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 01:52 PM
10-14-2004 01:52 PM
Re: What's wrong with this directory?
Can't help you much more...sorry.
Anyone else?
- Andy Gray