How do I Create a user which has access to all files regardless of Permission on files

I am in a situation where files get copied to a Solaris network drive and the GROUP permissions get cleared. I'm not quite sure why, but I need to create a user that can then access these files regardless of any file permissions. (Like ROOT would be able to do)

Then I can map the drives in Windows and MACOS using this user.

Who is Participating?
Hanno P.S.Connect With a Mentor IT Consultant and Infrastructure ArchitectCommented:
a) If you do not want to use RBAC, you will have to add a user with UID = 0
    Caution: This will make this user account identical to the root user!
b) Using RBAC, you will provide the user with a role allowing to read (and
    write?) all files. Predefined roles can be found in /etc/security/prof_attr
    The following files are the databases fir RBAC:
    - /etc/user_attr (main RBAC file)
    - /etc/security/prof_attr (right profile attributes/authorizations)
    - /etc/security/exec_attr (profile execution attributes)
    - /etc/security/auth_attr (authorization attributes).
    To learn more about RBAC, look at (White Paper) (custom examples)
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
Maybe, you should better try to find out why the group permissions are take away:
Are you using SaMBa? Which version?
If using SaMBa, could you please post smb.conf with (at least) the entry for the
share you use?
What are the permissions for the directory itself with this share?
cadancecorpAuthor Commented:
No, Its Appletalk.. When people copy from the MAC to the Solaris the Group Permissions go away. When users copy from a  windows workstation the SMB.CONF takes care of the permissions. 077.
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
Try changing the directory's permission setting the GUID bit:
   chmod g+s  directory
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
Type: I mean "set-group-ID" bit
cadancecorpAuthor Commented:
Hi, we are not too worried about security so I will set the user to UID=0
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
Have you tried to fix your problem changing the (parent) directory's permissions
  # chmod 750 mydir  
  # chmod g+s mydir
All Courses

From novice to tech pro — start learning today.