LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2009, 12:18 AM   #1
selvkaumarmvs
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
chown problem


Hi,

Solve the below problem in Red Hat 5.3....



[root@localhost lib]# groupadd oinstall
[root@localhost lib]# groupadd dba
[root@localhost lib]# groupadd oper
[root@localhost lib]# useradd -g oinstall -G dba oracle
[root@localhost lib]# passwd oracle
Changing password for user oracle.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost lib]# cd /opt
[root@localhost opt]# mkdir oracle
[root@localhost opt]# chown R oracle.oinstall oracle
chown: `R': invalid user
[root@localhost /]# chown R oracle.oinstall opt
chown: `R': invalid user
[root@localhost /]# chown R oracle opt
chown: `R': invalid user




Thanks
selva...
 
Old 04-20-2009, 12:28 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Did you mean to use "chown -R oracleinstall oracle"

Edit - that's a colon between user and group, not a period in case you get a smiley up as I do
 
Old 04-20-2009, 12:35 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
A period or a colon both work to separate the user from the group.

You may need to reboot after adding a new group.
 
Old 04-20-2009, 12:38 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Is that right? You learn something every day.
 
Old 04-20-2009, 01:08 AM   #5
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
Sorry to say, but there is no need for a reboot after adding a new group.
I've been on Linux for 15 months or so but still haven't rebooted the system cos i added a new group. done oracle installation of 9i, 10g on rhel 4, 5 & Solaris 10 but never got this error.


selva can print o/p of tail -10 /etc/passwd & /etc/group.

secondly when u add oracle user, then his default home directory will be /home/oracle, which should already have been created.

Also paste o/p of ls -ld /opt

i guess its not a option issue but user which u have added.
 
Old 04-20-2009, 01:10 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I know you can have problems such as visudo failing to accept edits if you just added a user or group. This actually surprised me when I discovered it. There is a command that can be done for new groups, but I don't remember it. It may apply just for current shell as well, and not for a service that is already running in its own environment. I don't remember. Yes, services can be restarted but rebooting would be the easiest solution covering all bases, since the root user can't log out completely.

Perhaps using the distro's adduser wizard will do what is needed short of rebooting. Studying it's script may provide more answers.
 
Old 04-20-2009, 01:15 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I know you can have problems such as visudo failing to accept edits if you just added a user or group. This actually surprised me when I discovered it. There is a command that can be run to recognize new group memberships, but I don't remember it. It may apply just for current shell as well, and not for a service that is already running in its own environment. I don't remember. Yes, services can be restarted but rebooting would be the easiest solution covering all bases, since the root user can't log out completely.

It may be also that you simply need to start a new interactive shell, so maybe logging out & in again would be a better answer. I think this is the case for group membership.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
chown problem jovie Linux - Newbie 8 04-10-2008 12:09 PM
[SOLVED] chown problem Wim Sturkenboom Linux - General 7 02-06-2007 03:18 AM
Problem with chown fgagnon Linux - General 9 04-03-2005 10:35 PM
chown problem rafc Linux - Newbie 6 07-06-2004 12:18 AM
chown problem Ayesha Linux - Newbie 4 04-17-2002 10:38 PM


All times are GMT -5. The time now is 10:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration