Sponsored Content
Operating Systems Solaris Can 2 users own one file_system together? Post 302211676 by trantuananh24hg on Friday 4th of July 2008 04:17:47 AM
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

 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
All times are GMT -4. The time now is 05:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy