Folders with more than one 'owner'


 
Thread Tools Search this Thread
Operating Systems Solaris Folders with more than one 'owner'
# 8  
Old 07-25-2012
Nobody mentioned ACL's here.

What OS are you using? i.e., what version of Solaris?
Please show the output of:
Code:
df -h
cat /etc/mnttab

More recent versions of Solaris have support for access control lists. (setfacl, getfacl)
# 9  
Old 07-25-2012
Code:
-bash-3.00# cat /etc/release
                   Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
     Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
                            Assembled 11 August 2010


-bash-3.00# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10         12G   9,4G   2,3G    81%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   3,9G   1,7M   3,9G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                        12G   9,4G   2,3G    81%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        12G   9,4G   2,3G    81%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/md/dsk/d50        5,9G   1,1G   4,7G    20%    /var
swap                   3,9G   6,6M   3,9G     1%    /tmp
swap                   3,9G    48K   3,9G     1%    /var/run
/dev/md/dsk/d70         29G   391M    29G     2%    /dados
/dev/md/dsk/d60         12G    12M    12G     1%    /usr/aplic



-bash-3.00# cat /etc/mnttab
/dev/md/dsk/d10 /       ufs     rw,intr,largefiles,logging,xattr,onerror=panic,dev=154000a      1342809141
/devices        /devices        devfs   dev=5b80000     1342809126
ctfs    /system/contract        ctfs    dev=5bc0001     1342809126
proc    /proc   proc    dev=5c00000     1342809126
mnttab  /etc/mnttab     mntfs   dev=5c40001     1342809126
swap    /etc/svc/volatile       tmpfs   xattr,dev=5c80001       1342809126
objfs   /system/object  objfs   dev=5cc0001     1342809126
sharefs /etc/dfs/sharetab       sharefs dev=5d00001     1342809126
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1   /platform/sun4u-us3/lib/libc_psr.so.1   lofs    dev=154000a     1342809139
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1   /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1   lofs    dev=154000a     1342809140
fd      /dev/fd fd      rw,dev=5e80001  1342809141
/dev/md/dsk/d50 /var    ufs     rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540032      1342809142
swap    /tmp    tmpfs   xattr,dev=5c80002       1342809142
swap    /var/run        tmpfs   xattr,dev=5c80003       1342809142
/dev/md/dsk/d70 /dados  ufs     rw,intr,largefiles,logging,xattr,onerror=panic,dev=1540046      1342809157
/dev/md/dsk/d60 /usr/aplic      ufs     rw,intr,largefiles,logging,xattr,onerror=panic,dev=154003c      1342809157
dv12001:vold(pid826)    /vol    nfs     ignore,noquota,dev=5f00001      1342809184
-hosts  /net    autofs  nosuid,indirect,ignore,nobrowse,dev=5f40001     1342809187
auto_home       /home   autofs  indirect,ignore,nobrowse,dev=5f40002    1342809187

Moderator's Comments:
Mod Comment Code tags for code, please.

Last edited by Corona688; 07-25-2012 at 03:46 PM..
# 10  
Old 07-25-2012
Quote:
Originally Posted by jim mcnamara
More recent versions of Solaris have support for access control lists. (setfacl, getfacl)
Where "more recent version" means Solaris 2.5 (1995) and newer Smilie

By the way, note the setfacl/getfacl commands, used with UFS and NFS v2/v3, are based on a now abandoned specification (POSIX 1003.6).

The new model, supported by ZFS and NFS v4, is based on NFSv4 ACLs and is handled by enhanced ls and chmod commands, which is a more logical choice.

Have a look to the acl man page for details about these two models.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Archive folders and sub folders

Hi Can i archive folder and folders in with the tar command My files are located in subfolders Eg: Folder1/Folder1_1/*.pdf Folder1/Folder1_2/*.pdf Folder1/Folder1_3/*.pdf so i would like to tar all the files in Folder1_1 and Folder1_2 only not Folder1_3 that should be done next... (2 Replies)
Discussion started by: cnrj
2 Replies

2. Shell Programming and Scripting

Copy between two different folders containing same sub-folders

I have a folder like this ls input1 dir1 dir2 dir3 file1 file2 file3 dir1, dir2 and dir3 are sub-folders inside the folder input1 ls input2 dir1 dir2 dir3 file1 file2 file3 My dir1 in input1 folder has files f1, f2, f3 and f4. My dir1 in input2 folder has file f4 and f5. ... (3 Replies)
Discussion started by: jacobs.smith
3 Replies

3. Solaris

Privileges : modify dir/file owner by other that's not owner

i need to do the following operations in solaris 10: 1.change owner and group owner for files which are not owned by the current user and user group 2.to can delete files in the /tmp directory which are not of the current user 3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Discussion started by: sirmark
1 Replies

4. UNIX for Dummies Questions & Answers

Searching for folders/parent folders not files.

Hello again, A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x. I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
Discussion started by: Aussiemick
2 Replies

5. Shell Programming and Scripting

Making 99 folders 99 folders deep

I am trying to make a unix shell script that will make 99 folders 99 deep (counting the first level folders). So far i have made it make the first 99 folders and 99 more in all of the folders. The only problem is the only way i have found is copying and pasting part of the script over and over and... (18 Replies)
Discussion started by: YukonAppleGeek
18 Replies

6. UNIX for Advanced & Expert Users

How UNIX admin set up this? how files of 744 of other owner can be removed by another owner?

Hi all, We have some files are under 744 permissions and the the owner is say owner1 and group1. Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that. ... (14 Replies)
Discussion started by: TheGunMan
14 Replies

7. UNIX for Advanced & Expert Users

find size of folders and its subfolders with the Owner details

HI, I have the following command that shows me the total size of folders and subfolders : du -hs *| sort -n result: 1.0M sandeep 1.4G sandy 1.4M important 1.6M files but I will need to know the size of folders and its subfolders( not size of individual files though)... (5 Replies)
Discussion started by: bsandeep_80
5 Replies

8. Solaris

Owner of file gets 'not owner' error for chgrp

Hi Folks, I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error. For example, when I am logged in as 'webadmin', I have the following file: ... (4 Replies)
Discussion started by: brizrobbo
4 Replies

9. UNIX for Dummies Questions & Answers

Copying Folders without some folders... ;-)

I am in a fix....... I have to write a backup script to backup say Folder A. Folder A contains n folders 1,2 ,3 .....n. my script should copy A without folder 2 & 3. Is there anyway I can do it without writing individual copy commands???? Please help.... (5 Replies)
Discussion started by: chimpu
5 Replies

10. Shell Programming and Scripting

Backing up Folders without some folders...;)

I am in a fix....... I have to write a backup script to backup say Folder A. Folder A contains n folders 1,2 ,3 .....n. my script should copy A without folder 2 & 3. Is there anyway I can do it without writing individual copy commands???? Please help.... (1 Reply)
Discussion started by: chimpu
1 Replies
Login or Register to Ask a Question