Operating System - HP-UX
1830895 Members
1508 Online
110017 Solutions
New Discussion

want to run mknod as oracle?

 
Doug Stuns
Occasional Advisor

want to run mknod as oracle?

I want to run mknod as oracle compress some large files as they are built. I think I need to set the SETUID on the mknod by performing the following:

chomd u=rx,u+s /sbin/mknod

However when I run as oracle I still get the following error:
netman:oracle:openview:/home/oracle >mknod
mknod: must be super-user




4 REPLIES 4
Ermin Borovac
Honored Contributor

Re: want to run mknod as oracle?

The only thing you can do with mknod as non-root user is create named pipes.

$ /sbin/mknod pipe_file p

You can also use mkfifo to do the same.
Indira Aramandla
Honored Contributor

Re: want to run mknod as oracle?

Hi Doug,

To compress large files as they are built as user Oracle you can use mkfifo (make FIFO (named pipe) special files).

This will serve your purpose.

mkfiof -p ${compress_file_path}


Indira A
Never give up, Keep Trying
A. Clay Stephenson
Acclaimed Contributor

Re: want to run mknod as oracle?

Allowing a non-root user to create devive nodes (unless they are named pipes) would be a huge security hole. If it were possible, a user could create a device node that could completely clobber a disk (eventhough a mounted filesystem already exists). You could setup sudo to allow certain users to create device nodes but I would never grant this power to a DBA. That would be a formula for disaster.
If it ain't broke, I can fix that.
renarios
Trusted Contributor

Re: want to run mknod as oracle?

Hi Doug,

The best option is to mknod as root, chmod the pipe, su [-] oracle ....
The only issue is that you have to start the script as root.

To ACS: Thanks for the compliment. Your view on DBAs is not very optimistic/realistic.
If you grant such right, make good procedures. That helps a lot.

Cheerio,

Renarios
Nothing is more successfull as failure