LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-29-2007, 10:51 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Exclamation 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 ...
 
Old 01-29-2007, 01:16 PM   #2
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
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
 
Old 01-29-2007, 01:35 PM   #3
StargateSteve
Member
 
Registered: Dec 2006
Location: UNM
Distribution: Debian Lenny
Posts: 107

Rep: Reputation: 15
"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"?
 
Old 01-29-2007, 03:27 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
sudo mkdir /test

add sudo before the command
 
Old 01-30-2007, 02:56 AM   #5
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Original Poster
Rep: Reputation: 31
Cool 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 ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
help please: mount -t smbfs -a fails as normal user, as root, doesn't mount anything thevic Linux - Networking 11 04-09-2007 03:09 AM
Fedora core 4 install problem can't mount root noaccess Fedora - Installation 8 10-16-2005 08:33 PM
kernel 2.6.7 VFS unable to mount root problem deveraux83 Slackware 2 11-05-2004 02:35 AM
Root mount problem Stephanie Linux - General 1 08-03-2001 05:45 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration