Can 2 users own one file_system together?


 
Thread Tools Search this Thread
Operating Systems Solaris Can 2 users own one file_system together?
# 1  
Old 07-04-2008
Can 2 users own one file_system together?

Hi all!

I have one disk /dev/dsk/c1t2d0s0, and it's mounted on /Billingoracle, and I had one user - oracle, belonged to dba group whom owned this directory.

Code:
$ df -k /oracle
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t1d0s0    103275934 2902406 99340769     3%    /Billingoracle

$ ls -l
total 1792958
-rw-r--r--   1 oracle   oinstall 917512192 May 24 17:10 10gr2_db_sol.cpio
drwxr-xr-x  10 oracle   oinstall     512 May 28 09:02 Log4plsql
drwxr-xr-x   2 oracle   oinstall     512 May 24 17:47 TEMP
drwxr-xr-x   2 root     other        512 May 24 17:55 TT_DB
-rw-r--r--   1 oracle   oinstall    1075 May 24 17:59 initBilling.ora
-rw-r--r--   1 oracle   oinstall    4055 May 28 09:30 install.log
drwxrwx---   3 oracle   oinstall     512 May 24 17:46 oracle
-rw-r--r--   1 oracle   oinstall     195 Jun 13 10:49 spcpkg.lis
-rw-r--r--   1 oracle   oinstall    4156 Jun 13 10:49 spctab.lis
-rw-r--r--   1 oracle   oinstall    2133 Jun 13 10:48 spcusr.lis
-rw-r--r--   1 oracle   oinstall    2790 May 24 18:47 sqlnet.log
drwxr-xr-x   4 oracle   oinstall     512 Jun 26 17:14 tmp
$ cd ..
$ cd ..
$ pwd
/
$ ls -l
total 17396
drwxr-xr-x   2 root     root         512 Nov 24  2007 Desktop
drwxr-xr-x   2 root     root         512 Nov 24  2007 Documents
drwx------   2 root     root         512 Nov 24  2007 Mail
drwxrwxr-x  12 oracle   dba         1024 Jun 26 17:14 Billingoracle
drwxrwxrwx   4 oracle   dba         1024 May 24 17:28 BillingoradataTBSUSERS
drwxr-xr-x   4 oracle   dba          512 May 24 17:28 BillingoradataUSERS
drwxr-xr-x   2 root     other        512 Nov 24  2007 TT_DB
lrwxrwxrwx   1 root     root           9 Nov 24  2007 bin -> ./usr/bin
drwxr-xr-x   3 root     nobody       512 May 26 09:12 cdrom
-rw-------   1 root     root     8356350 May 27 10:46 core
drwxr-xr-x  20 root     sys         4096 May 26 09:12 dev
drwxr-xr-x   2 root     sys          512 May 26 09:12 devices
drwxr-xr-x  82 root     sys         4608 Jun 19 17:39 etc
drwxr-xr-x   3 root     sys          512 Nov 24  2007 export
dr-xr-xr-x   1 root     root           1 May 26 09:12 home
drwxr-xr-x  14 root     sys          512 Nov 24  2007 kernel
drwxr-xr-x   7 root     bin         5632 Nov 24  2007 lib
drwx------   2 root     root        8192 Nov 24  2007 lost+found
drwxr-xr-x   2 root     sys          512 Nov 24  2007 mnt
dr-xr-xr-x   1 root     root           1 Jul  4 14:29 net
drwxr-xr-x   8 root     sys          512 Nov 24  2007 opt
drwxr-xr-x  40 root     sys         1536 Nov 24  2007 platform
dr-xr-xr-x 125 root     root      480032 Jul  4 15:15 proc
drwxr-xr-x   2 root     sys         1024 Nov 24  2007 sbin
drwxr-xr-x   4 root     root         512 Nov 24  2007 system
drwxrwxrwt   8 root     sys         1854 Jul  4 14:18 tmp
drwxr-xr-x   3 root     root         512 May 24 17:12 u01
drwxr-xr-x  41 root     sys         1024 Nov 24  2007 usr
drwxr-xr-x  44 root     sys         1024 Nov 24  2007 var
dr-xr-xr-x   6 root     root         512 May 26 09:12 vol
$

And I have one question:

Can I create one new user, new group, and the user can own /Billingoracle?

Example:
Code:
$su - root
password:
#groupadd -g 116 loyalty   <<-- Create parent group
#groupadd -g 115 loyaltyvnp <<-- Create child group
#mkdir -p /Billingoracle/loyalty <<- Make one directory to be used by users loyalty
useradd -u 175 -c "Loyalty Software Owner" -d /Billingoracle/loyalty -g loyalty -G loyaltyvnp -m -s /bin/ksh loyalty <<-- Create user loyalty

# 2  
Old 07-04-2008
Hi!

I've just understood that 2 users belong to other groups do not own the same file system. Only 2 users (or many users) belong to only group can do it.

So that, I add
Code:
#useradd -G dba  -d /Billingoracle/loyalty -m loyalty

Am I right?

Thank you!
# 3  
Old 07-04-2008
Yes you're right!
# 4  
Old 07-04-2008
Quote:
Originally Posted by incredible
Yes you're right!
Thank you!

Would I like to ask more than?
If I do not grant the ID to the loyalty user, then, what's the ID? It'll be random generated?

And the loyalty user will connect to the host normally?
# 5  
Old 07-05-2008
Oah! I knew the decrease one by one if I add the more user to one group.

Code:
$id -a 
uid=176(loyalty) gid=116(oinstall) groups=116(oinstall),115(dba)

But unfortunately, I am a newbie on Solaris when I can not execute any oracle application after this loyalty user was added.

Code:
$ ORACLE_HOME=/Billingoracle/oracle/product/10.2.0/NEF
$ export ORACLE_HOME
$ sqlplus /nolog
sqlplus: not found
$ /Billingoracle/oracle/product/10.2.0/NEF/bin/sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 5 10:52:43 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn /as sysdba
ERROR:
ORA-12162: TNS:net service name is incorrectly specified


SQL> exit
$ bash
bash-3.00$ /Billingoracle/oracle/product/10.2.0/NEF/bin/lsnrctl start

LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 05-JUL-2008 10:53:18

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

TNS-01106: Listener using listener name LISTENER has already been started
bash-3.00$ /Billingoracle/oracle/product/10.2.0/NEF/bin/sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 5 10:54:09 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn sys/a0289@NEF as sysdba
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor


SQL> exit
bash-3.00$ ORACLE_SID=BILLING
bash-3.00$ export ORACLE_SID=BILLING
bash-3.00$ /Billingoracle/oracle/product/10.2.0/NEF/bin/sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 5 10:55:35 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn sys/a0289@NEF as sysdba
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor


SQL> exit

bash-3.00$ su - oracle
Password:
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 5 10:56:05 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn /as sysdba
Connected.
SQL> show parameter service_name

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string     NEF
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
$ exit
bash-3.00$

I did not call sqlplus application from the Oracle_Home, although the Oracle_Home and Oracle_SID was exported right now.

Would you tell me why?

Thank you very much!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

2. Red Hat

users cannot switch with "su" to another users

Hi, i have a problem, itīs because users without belonging wheel group cannot switch to another user , when the password is introduced says not right password. The only solution for now is to add them to wheel users, but then i have another problem, they can login as root. Is there any... (3 Replies)
Discussion started by: pabloli150
3 Replies

3. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

4. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

5. HP-UX

Limiting SFTP Users While Not Limiting Regular Users?

Hi, I have searched the web and have come back with nothing that is satisfactory for what I require. SFTP is my corporations new file transfer standard. What I require is a method to lock down SFTP users to their directory (they may go to sub directories) while not restricting regular users. ... (2 Replies)
Discussion started by: Emancipator
2 Replies

6. HP-UX

Users

Is there a command to tell what applications certain users ran in past few months? And thier last login? This is on HPUX machine Thanks! (1 Reply)
Discussion started by: catwomen
1 Replies

7. Solaris

do i need these users?

uucp:x:5:5:uucp Admin:/usr/lib/uucp: nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico smmsp:x:25:25:SendMail Message Submission Program:/: listen:x:37:4:Network Admin:/usr/net/nls: nobody:x:60001:60001:Nobody:/: noaccess:x:60002:60002:No Access User:/:... (3 Replies)
Discussion started by: csaunders
3 Replies

8. UNIX for Dummies Questions & Answers

no of users

Is there any way to find the number of unique users in a system other than who | cut -d" " -f1 | sort -u | wc -l ? (3 Replies)
Discussion started by: asutoshch
3 Replies
Login or Register to Ask a Question