LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-07-2012, 04:44 AM   #1
Alok Behria
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
Map 2 users privileges


Hi All,

I am new to linux world and hope to get the response of my question. I have one user oracle and one more user created with the name of orptsap and I need to make privileges similar to oracle , which is part of DBA group. although i have created the user and it also able to login, but I really doubt , it has similar privilegs to oracle.

PHP Code:
-- oracle user -------
[
oracle@tbx4new ~]$ id oracle
uid
=501(oraclegid=502(dbagroups=502(dba)
----- 
oraptsap user ---
[
oracle@tbx4new ~]$ id oraptsap
uid
=2602(oraptsapgid=502(dbagroups=502(dba)

----- 
when login to oraptsap user following is returned ---
login as: oraptsap
oraptsap
@tbx4new.am.elcompanies.net's password:
Last login: Wed Jun  6 16:41:33 2012 from 172.30.174.63
Could not chdir to home directory /home/oraptsap: Permission denied
-bash: /home/oraptsap/.bash_profile: Permission denied
-bash-3.2$ id
uid=2602(oraptsap) gid=502(dba) groups=502(dba) 
 
Old 06-07-2012, 05:29 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, they are both in the same group, which seems to be what you want.

I suspect you've given ownership of oraptsap's home dir to the oracle user (or someone else who is NOT oraptsap.)
This is wrong; user must own their own home dir and contents.
Just use eg
Code:
ls -l /home

ls -al /home/oracle
and adjust oraptsap's ownerships / perms to match, but using oraptsap, not oracle .
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Query regarding group users' privileges vikram8jp Linux - Newbie 5 10-22-2008 09:37 PM
Don't letting users do certain things. Privileges. glore2002 Slackware 12 08-14-2008 06:20 AM
Problems allocating write privileges to directories for users tuffstuff Linux - Newbie 3 04-21-2007 05:29 PM
Adding users to Kubuntu: need admin privileges badbunny Ubuntu 3 03-16-2006 12:35 PM
Samba Users & Groups Privileges Bilal84 Linux - Networking 3 10-11-2005 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:40 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