System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

wired problem with lssf command

 
SOLVED
Go to solution
bo.yang3
Occasional Contributor

wired problem with lssf command

Hi People,
When I run command lssf at a HPUX 11.23 box, it got permission denied error:

# file /usr/sbin/lssf
/usr/sbin/lssf: PA-RISC1.1 shared executable -not stripped
# ll /usr/sbin/lssf
lrwxr-xr-x 1 root bin 10 Jun 12 2008 /usr/sbin/lssf -> /sbin/mksf
# /usr/sbin/lssf
/bin/sh: /usr/sbin/lssf: Execute permission denied.
# /usr/sbin/lssf -c
/bin/sh: /usr/sbin/lssf: Execute permission denied.
# /usr/sbin/lssf /dev/dsk/c2t0d0
/bin/sh: /usr/sbin/lssf: Execute permission denied.
#

Can anybody give me some idea? thanks.

Regrads
Leo
9 REPLIES
Patrick Wallek
Honored Contributor

Re: wired problem with lssf command

lssf is, according to your 'll' output, a link to /sbin/mksf.

What are the permissions on '/sbin/mksf'?

# ll /sbin/mksf

If the permissions are incorrect that could be your problem.
yangbo_2
Occasional Contributor

Re: wired problem with lssf command

Hi,
Thanks for you reply.
I checked some, and compared the result with anoter normal 11.23 server, they are same.

# ll /sbin/mkfs
lrwxr-xr-x 1 bin bin 16 Jun 12 2008 /sbin/mkfs -> /sbin/fs_wrapper
# ll /sbin/fs_wrapper
-r-xr-xr-x 1 bin bin 364544 May 4 2005 /sbin/fs_wrapper
Kapil Jha
Honored Contributor

Re: wired problem with lssf command

l /sbin/mkfs
lrwxr-xr-x 1 bin bin 16 Jun 12 2008 /sbin/mkfs -> /sbin/fs_wrapper
# ll /sbin/fs_wrapper
-r-xr-xr-x 1 bin bin 364544 May 4 2005 /sbin/fs_wrapper


there is difference mksf and mkfs

mkfs should be linked as /sbin/fs_wrapper

and ur problem is mksf
which should have correct permission.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: wired problem with lssf command

so u need to check
ls -lrt /sbin/mksf

BR,
Kapil+
I am in this small bowl, I wane see the real world......

Re: wired problem with lssf command

># ll /usr/sbin/lssf
>lrwxr-xr-x 1 root bin 10 Jun 12 2008 /usr/sbin/lssf -> /sbin/mksf

To get the properties of the target of a symlink you can do:
# ll -L /usr/sbin/lssf
bo.yang3
Occasional Contributor

Re: wired problem with lssf command

Hi,

sorry for my carelessness!

please find output as follows:


# ll -L /usr/sbin/lssf
-r-xr-xr-x 4 bin bin 442368 Apr 17 2008 /usr/sbin/lssf
# ll /usr/sbin/lssf
lrwxr-xr-x 1 root bin 10 Jun 12 2008 /usr/sbin/lssf -> /sbin/mksf
# ll /sbin/mksf
-r-xr-xr-x 4 bin bin 442368 Apr 17 2008 /sbin/mksf


but I checked with other normal server, I found they are same.

regards
Leo
Solution

Re: wired problem with lssf command

>I checked with other normal server, I found they are same.

You might also want to use cksum(1) on the two servers to see if the bits are the same.
bo.yang3
Occasional Contributor

Re: wired problem with lssf command

Hi Dennis,

I used command cksum as you suggested and I found the output is not same as other same servers, so I copy the file /sbin/mksf from normal server to this server, then the problem fiexd!!!

really thanks for you guys helps!!!


Regrads
Leo

Re: wired problem with lssf command

>really thanks for you guys helps!

If you are happy with the answers you were given, please read the following about how to assign points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33