Highlighted
Absent Member.
Absent Member.
1124 views

OES 10 SP1: find thinks symlinks are files

Hi,

This is probably said somewhere but I really can't find any information on this:

I have directory full of symlinks (soft links). 'ls' shows them as symlinks but 'find' thinks they are files.

{{{
username@hostname:/media/nss/DATA2/dir> ls -l | grep '40[14]'
lrwxrwxrwx 1 username root 37 2009-04-08 17:21 401.html -> ../tuotantopalvelimen_kopio/401.html
lrwxrwxrwx 1 username root 37 2009-04-08 17:21 404.html -> ../tuotantopalvelimen_kopio/404.html

username@hostname:/media/nss/DATA2/dir> find . -type l | grep '40[14]'

username@hostname:/media/nss/DATA2/dir> find . -type f | grep '40[14]'
./401.html
./404.html
username@hostname:/media/nss/DATA2/dir>
}}}

On OES 9 everything works. On both machines usernames and their rights are the same as are mount-options.

Any insights?
Labels (2)
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

Re: OES 10 SP1: find thinks symlinks are files

* pekk (Thu, 09 Apr 2009 12:26:02 GMT)
> This is probably said somewhere but I really can't find any
> information on this:
>
> I have directory full of symlinks (soft links). 'ls' shows them as
> symlinks but 'find' thinks they are files.
>
> {{{
> username@hostname:/media/nss/DATA2/dir> ls -l | grep '40[14]'


that's "ls -l *40[14]*"

> lrwxrwxrwx 1 username root 37 2009-04-08 17:21 401.html ->
> ./tuotantopalvelimen_kopio/401.html
> lrwxrwxrwx 1 username root 37 2009-04-08 17:21 404.html ->
> ./tuotantopalvelimen_kopio/404.html
>
> username@hostname:/media/nss/DATA2/dir> find . -type l | grep '40[14]'


that's "find . -type l -name '*40[14]*'"

> username@hostname:/media/nss/DATA2/dir> find . -type f | grep '40[14]'
>
> /401.html
> /404.html


see above

> On OES 9 everything works. On both machines usernames and their rights
> are the same as are mount-options.
>
> Any insights?


Probably some incompatibility between find and NSS.

Thorsten
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: OES 10 SP1: find thinks symlinks are files

* pekk (Thu, 09 Apr 2009 12:26:02 GMT)
> On OES 9 everything works. On both machines usernames and their rights
> are the same as are mount-options.
>
> Any insights?


Also you might have to enable hard links:
http://forums.novell.com/novell-product-support-forums/open-enterprise-
server/oes-linux/oes-l-storage-backup/349835-cant-create-soft-link-nss-
volume.html
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: OES 10 SP1: find thinks symlinks are files

Thorsten Kampe;1773642 wrote:
* pekk (Thu, 09 Apr 2009 12:26:02 GMT)
> On OES 9 everything works. On both machines usernames and their rights
> are the same as are mount-options.
>
> Any insights?


Also you might have to enable hard links:
http://forums.novell.com/novell-product-support-forums/open-enterprise-
server/oes-linux/oes-l-storage-backup/349835-cant-create-soft-link-nss-
volume.html


Situation is trickier.

1) Hardlinks ARE NOT enabled on OES9. Yet hardlinks and symlinks work.

2) Hardlinks were not enabled on OES10. Yet I could create both hardlinks and symlinks. 'ls' -command could differentiate between files and symlinks but 'find' -command couldn't.

3) After enabling hardlinks on OES10 nothing changes. 'find' -command still thinks files and symlinks are the same.

4) Created symlinks don't have ln attribute set before or after hardlinking is enabled.

Maybe it's time to visit our contractor...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.