- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Meaning of hash mark in long listing?
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-24-2002 11:17 PM
06-24-2002 11:17 PM
this really is daft.
I get inexplicable hash marks (i.e. '#') in the 3rd field of a long listing.
Having thought this is yet another unknown (to me) feature of ls, I consulted the ls and ll manpages but haven't found a single occurence of the pattern '#', nor any explanation for it.
Is (hopefully not) the filesystem maybe screwed up so that the stat syscalls output an additional field with some memory garbage?
Has anyone a eplanation?
# ll /usr/local
total 6
drwxr-xr-x 2 # bin bin 3072 Jun 18 08:40 bin
drwxr-xr-x 2 # bin bin 96 Jun 18 10:26 etc
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 games
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 lib
drwxr-xr-x 2 # bin bin 96 Jun 6 09:33 man
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:27 PM
06-24-2002 11:27 PM
Re: Meaning of hash mark in long listing?
Does this appear on any other system?
Do you have any starnge aliases in use?
You not using a different 'ls' command like 'super ls' ?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:28 PM
06-24-2002 11:28 PM
Re: Meaning of hash mark in long listing?
Hi,
Check if you have a private ll in your
search-path or an alias with the name
ll
Or you could also try to see if you get
the same output using these commands:
/usr/bin/ll
/usr/bin/ls -l
Regards
olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:29 PM
06-24-2002 11:29 PM
Re: Meaning of hash mark in long listing?
i've never seen this before.
Try /sbin/ls -l /usr/local
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:51 PM
06-24-2002 11:51 PM
Re: Meaning of hash mark in long listing?
I cannot find any set alii or function definitions, neither for ll nor ls.
The output remains the same even when I invoke the commands using the absolute path (i.e. not evaluating PATH):
# type ll
ll is /usr/bin/ll
# type ls
ls is a tracked alias for /usr/bin/ls
# alias ls
ls: shell alias not found.
# typeset -f ll
# /usr/bin/ll /usr/local
total 6
drwxr-xr-x 2 # bin bin 3072 Jun 18 08:40 bin
drwxr-xr-x 2 # bin bin 96 Jun 18 10:26 etc
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 games
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 lib
drwxr-xr-x 2 # bin bin 96 Jun 6 09:33 man
# /usr/bin/ls -l /usr/local
total 6
drwxr-xr-x 2 # bin bin 3072 Jun 18 08:40 bin
drwxr-xr-x 2 # bin bin 96 Jun 18 10:26 etc
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 games
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 lib
drwxr-xr-x 2 # bin bin 96 Jun 6 09:33 man
# /sbin/ll /usr/local
sh: /sbin/ll: not found.
# /sbin/ls -l /usr/local
total 6
drwxr-xr-x 2 # bin bin 3072 Jun 18 08:40 bin
drwxr-xr-x 2 # bin bin 96 Jun 18 10:26 etc
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 games
drwxr-xr-x 2 # bin bin 96 Jun 6 09:52 lib
drwxr-xr-x 2 # bin bin 96 Jun 6 09:33 man
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:59 PM
06-24-2002 11:59 PM
Re: Meaning of hash mark in long listing?
Dunno, how this could sneak in
# id bin
uid=2(# bin) gid=2(bin)
But can I do a "userdel '# bin'"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:04 AM
06-25-2002 12:04 AM
Re: Meaning of hash mark in long listing?
Someone screwed up the /etc/passwd,
see
# grep ^#\ bin /etc/passwd
# bin:*:2:2::/usr/bin:/sbin/sh
but luckily this entry also exists:
# grep ^bin /etc/passwd
bin:*:2:2::/usr/bin:/sbin/sh
So I will vipw, remove "# bin" and chown files belonging to "# bin" to now belong to bin.
Sorry, for confusing you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:06 AM
06-25-2002 12:06 AM
Re: Meaning of hash mark in long listing?
no, don't delete user bin! But you can change the username with usermod- command to fix your problem.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:24 AM
06-25-2002 12:24 AM
Re: Meaning of hash mark in long listing?
I searched the filsystems for files belonging to "# bin".
Argh, my worst fears seem come true.
As it looks almost every file normally belonging to bin has the screwed ownership:
# find / -user '# bin' |tee ~/files_of_#_bin.lst
# wc -l ~/files_of_#_bin.lst
33845 /ROOT/files_of_#_bin.lst
This must have happened when colleagues converted from HP-UX 10.20 to 11.00 while I was on holiday.
Don't know what on earth made them comment lines in /etc/passwd?
Can I reassign ownerships by doing simply this, or would do even more harm?
find / -user '# bin' -exec chown bin {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:29 AM
06-25-2002 12:29 AM
Solutioni thought this over a little bit, you should use SAM, delete the user "# bin" and use the option "assign data to a new user", and give all data from your corrupt user to correct user bin. This should do it for you.
Your find- command seems also to be ok. If you use it, don't forget to delete the "# bin"- user after it.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:41 AM
06-25-2002 12:41 AM
Re: Meaning of hash mark in long listing?
relieved, the find chown and userdel worked.
now everything looks as usually. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:59 AM
06-25-2002 12:59 AM
Re: Meaning of hash mark in long listing?
Hi,
Interesting case!!
Even though the problem seems to be solved
I have a comment.
I think it could would be ok just to
delete the line for the # bin user in
/etc/passwd
This because the UID was the same (2)
for both user bin and # bin
What is stored in the file's inode is the
UID not the name # bin or bin.
So when a ll is produced /etc/passwd is
searched for the UID 2 and the username
assosiated with UID 2 is then used in the
output. I would guess that # bin was in front
of bin in /etc/passwd
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 03:20 AM
06-25-2002 03:20 AM
Re: Meaning of hash mark in long listing?
For What It's Worth,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 06:33 AM
06-25-2002 06:33 AM
Re: Meaning of hash mark in long listing?
you were right both, of course.
This was just my foolish bad intuition to have chmoded through find, which as you stressed, was silly.
Afterwards I also saw that simply the deletion of the commented lines from /etc/passwd would have sufficed since both *bin accounts had the same ID.
Thus the find rather was a waste of energy.
But when the result is right (just like the outcome of the world cup semi-final for Germany, as I heard right now) who cares for style ;-)