LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Mount and Root Prevelege Problem (https://www.linuxquestions.org/questions/linux-enterprise-47/mount-and-root-prevelege-problem-523782/)

shipon_97 01-29-2007 10:51 AM

Mount and Root Prevelege Problem
 
Dear Friends ,
I am using now Redhat Enterprise 3 Server . Here I get following two problems :

1) I can't mount "pendrive" into my server .
using the following command :

mkdir /usb
mount /dev/sda1 /usb

But it doesnt work . Can any body plz tell me what is the problem and how can I solve it ?

2)
Suppose I have a user "Oracle" . I want a situation where Oracle user can do everything Like (mkdir,rm etc) root user . So that I give the following entry into "/etc/sudoers"

root ALL=ALL(ALL)
oracle ALL=ALL(ALL)

and also give the entry below the "%wheel" line And give the machine reboot . But when I login into my server as Oracle user and give a command Like :

"mkdir /test" then it shows "permission denied" . Plz tell me How can I give all prevelege to Oracle user as "root"


Waiting for ur Kind Reply ...

rahulk 01-29-2007 01:16 PM

Quote:

Originally Posted by shipon_97
Dear Friends ,
I am using now Redhat Enterprise 3 Server . Here I get following two problems :

1) I can't mount "pendrive" into my server .
using the following command :

mkdir /usb
mount /dev/sda1 /usb

But it doesnt work . Can any body plz tell me what is the problem and how can I solve it ?

2)
Suppose I have a user "Oracle" . I want a situation where Oracle user can do everything Like (mkdir,rm etc) root user . So that I give the following entry into "/etc/sudoers"

root ALL=ALL(ALL)
oracle ALL=ALL(ALL)

and also give the entry below the "%wheel" line And give the machine reboot . But when I login into my server as Oracle user and give a command Like :

"mkdir /test" then it shows "permission denied" . Plz tell me How can I give all prevelege to Oracle user as "root"


Waiting for ur Kind Reply ...

1. While mounting the USB drive, you need to provide the type of file-system on it. It could be "usbfs" if you have not formatted your pen drive with any other file system.

Try mount -t usbfs ***

2. Are you sure you gave the command as :-

sudo mkdir /test

Coz if you have done so, then it should not have any issues.

Hope it helps,
Rahul Khare

StargateSteve 01-29-2007 01:35 PM

"mkdir /test" then it shows "permission denied" . Plz tell me How can I give all prevelege to Oracle user as "root"

do you mean "sudo mkdir /test"?

uselpa 01-29-2007 03:27 PM

sudo mkdir /test

add sudo before the command

shipon_97 01-30-2007 02:56 AM

Run a service using another user, not root
 
Frinds ,

Actually the main problem is :

I have installed COBOL language in RHEL3 using ROOT user . the service of COBOL is "sde" . When I type "sde" in commnad shell as ROOT user then the program is run . But Using another user Like "Oracle user" I cant run the "sde" service/script , it shows cannot find it .I also go to that directory , find the "sde" script and try to run ... But it can't run as Oracle user .

Now I just want a situation where my "sde" service/script is run using as "ORacle" user .

I think now u r understanding my problem


I h ave another Question . I want to make write some Document in
CD . In Linux platform how to write a CD ?


All times are GMT -5. The time now is 04:32 AM.