1827197 Members
2309 Online
109716 Solutions
New Discussion

ioscan error

 
SOLVED
Go to solution
Wamaitha
Frequent Advisor

ioscan error

Hello, i keyin ioscan and i am getting the following error:
"ioscan: libIO error from io_init: /dev/config - permission denied."
i am still a novice at hp-ux administration, what do i need to do to be able to perform daily tasks without loggin in as root.
thanks in advance.
9 REPLIES 9
Arunvijai_4
Honored Contributor

Re: ioscan error

Hi,

Just to make sure, are you running "ioscan" as root ? If you cant run as root, try # ioscan -kfn.

Also, reading these threads should help.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=797293

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=946394

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Pete Randall
Outstanding Contributor

Re: ioscan error

You can use "ioscan -k" which will show you what is present in the kernel. That's what I usually run anyway because it's faster. The only time I don't use -k is if I've got newly attached hardware I'm looking for.


Pete

Pete
Paul Sperry
Honored Contributor

Re: ioscan error

Actually ioscan with certain options is NOT limited to just superuser.

try

ioscan -fun
Wamaitha
Frequent Advisor

Re: ioscan error

if i logged in ran ioscan with no options i get the error, but with options i am able to perform an ioscan. just to be sure there is nothing i can do as an admin to be able to perform ioscan without loggin in as root?
thanks in advance.
Arunvijai_4
Honored Contributor

Re: ioscan error

Hi,

You asked "Logged in ran ioscan with no options i get the error, but with options i am able to perform an ioscan. just to be sure there is nothing i can do as an admin to be able to perform ioscan without loggin in as root? "

Yes, a normal user cant do anything with ioscan..

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Victor BERRIDGE
Honored Contributor
Solution

Re: ioscan error

Hi,
That is because ioscan without options updates /dev/config and /etc/ioconfig, which only root has write permission, there is a box where because of mad developpers trying to hack root passwd I only connect myself and had to compile a sudo so I have no passwd without timeout and works only when I call an alias of ksh...
So on this box I put myself in the /etc/group file in the groups bin, root, adm, sys, mail and modified the permission on the groups to /dev/config /dev/kmem /etc/ioconfig, and most files in /etc so in case Im stressed I will not sudo and can still do some tasks...
Dont forget there is also the possibility to grant yourself to all (most) tasks restricted sam (sam -r)

All the best
Victor
Paul Sperry
Honored Contributor

Re: ioscan error

As a normal user you can not run just plain ioscan. And as an admin there is nothing you can do about that.
Paul Sperry
Honored Contributor

Re: ioscan error

Victor has something there. You could use sudo or super to grant normal users access to ioscan (by it's self or with options)
Wamaitha
Frequent Advisor

Re: ioscan error

thank you all, all the answers you provided made. as a user ran ioscan with options so as not to get an error.
Gracias all.