- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- make link /usr/lib to /lib
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
02-26-2005 04:30 PM
02-26-2005 04:30 PM
make link /usr/lib to /lib
#cd /usr
#ls -l|grep lib
drwxr-xr-t 39 bin bin 16384 Feb 26 02:45 lib
#cd /
#ln -s /usr/lib /lib
#ls -l|grep lib
lrwxrwxrwx 1 root sys 8 Feb 27 00:27 lib -> /usr/lib
permission for /usr/lib is changed.why????
# ls -l|grep usr/lib
lrwxrwxrwx 1 root sys 8 Feb 27 00:27 lib -> /usr/lib
any thoughts???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 05:50 PM
02-26-2005 05:50 PM
Re: make link /usr/lib to /lib
see where the permission has changed. Can you
show the permission change by posting the output of
the following:
# ls -ld /usr/lib
and
# ls -ld /lib
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 06:22 PM
02-26-2005 06:22 PM
Re: make link /usr/lib to /lib
when i make link /usr/lib to /lib with command :
#ln -s /usr/lib /lib
,the permission for /usr/lib changed.
before i make link:
#cd /usr
#ls -l|grep lib
drwxr-xr-t 39 bin bin 16384 Feb 26 02:45 lib
and after i made link:
# ls -l|grep usr/lib
lrwxrwxrwx 1 root sys 8 Feb 27 00:27 lib -> /usr/lib
# ls -l|grep usr/lib
lrwxrwxrwx 1 root sys 8 Feb 27 00:27 lib -> /usr/lib
and after about 5 miniutes, /lib is losed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 06:28 PM
02-26-2005 06:28 PM
Re: make link /usr/lib to /lib
# ls -ld /usr/lib
and
# ls -ld /lib
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 06:38 PM
02-26-2005 06:38 PM
Re: make link /usr/lib to /lib
# ls -ld usr/lib
drwxr-xr-t 39 bin bin 16384 Feb 26 02:45 usr/lib
after make link:
# ls -l|grep usr/lib
lrwxrwxrwx 1 root sys 8 Feb 27 00:27 lib -> /usr/lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 06:48 PM
02-26-2005 06:48 PM
Re: make link /usr/lib to /lib
> ls -ld /usr/lib befor I make link:
> # ls -ld usr/lib
> drwxr-xr-t 39 bin bin 16384 Feb 26 02:45 usr/lib
Okay. Now that you have already made the link,
check the permission of /usr/lib by running
# ls -ld /usr/lib
Use absolute path (i.e /usr/lib instead of usr/lib)
> after make link:
> # ls -l|grep usr/lib
> lrwxrwxrwx 1 root sys 8 Feb 27 00:27 lib -> /usr/lib
Now lrwxrwxrwx is the permission of /lib. Permission
of /usr/lib would still be drwxr-xr-t. Don't do grep
and don't use relative path. Just simply type
# ls -ld /lib
#ls -ld /usr/lib
and you will see the difference.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 06:51 PM
02-26-2005 06:51 PM
Re: make link /usr/lib to /lib
check this thread about ln and umask.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=541998
it wil provide your answer.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 06:57 PM
02-26-2005 06:57 PM
Re: make link /usr/lib to /lib
# ls -ld /usr/lib
drwxr-xr-x 39 bin bin 16384 Feb 26 02:45 /usr/lib
# pwd
/
# ln -s /usr/lib /lib
# ls -ld /usr/lib
drwxr-xr-x 39 bin bin 16384 Feb 26 02:45 /usr/lib
# ls -ld /lib
lrwxrwxrwx 1 root sys 8 Feb 27 02:55 /lib -> /usr/lib
when I want to change permission /lib with chmod, there is no changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 07:08 PM
02-26-2005 07:08 PM
Re: make link /usr/lib to /lib
> when I want to change permission /lib with
> chmod, there is no changes.
Yes. And explanation for that is in Henk's post (see
the link he provided).
Your original post said that the permission of
/usr/lib got automatically changed after you created
the sym link. I was merely trying to point out that it
did not. The permission of /usr/lib remained same
after the sym link was created . Permission of /lib
was determined by the umask which was different
from permission of /usr/lib.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 07:23 PM
02-26-2005 07:23 PM
Re: make link /usr/lib to /lib
Don't worry about the permissions on the link - effective permissions are on the "real" - IE /usr/lib
From man ln
Symbolic links are created with the ownership of the creator and the
permissions are of the creator's current umask. Once created, the
symbolic link ownership and permissions will not change, since the
mode and ownership of the symbolic link is ignored by the system.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2005 07:47 PM
02-26-2005 07:47 PM
Re: make link /usr/lib to /lib
i just make link like this:
#cd /
#ln -s /usr/lib /lib
#ls -ld /usr/lib
drwxr-xr-x 39 bin bin 16384 Feb 27 03:23 /usr/lib
# ls -ld /lib
lrwxr-xr-x 1 root sys 8 Feb 27 03:25 /lib -> /usr/lib
permission for /lib is lrwxr-xr-x, i want to change to lrwxr-xr-t.like permission for /bin that link to /usr/bin
how??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 12:09 PM
02-27-2005 12:09 PM
Re: make link /usr/lib to /lib
/lib is losed.why ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 06:16 PM
02-27-2005 06:16 PM