BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RexDeus9
Quartz | Level 8

Hi Kurt,

 

Working with SAS EG.

Kurt_Bremser
Super User

@RexDeus9 wrote:

Hi Kurt,

 

Working with SAS EG.


If the libraries are assigned with a basic libname statement (and not with the meta engine), then the metadata access control will not be active.

You can make sure that the access control works by converting to metadata bound libraries. 

Patrick
Opal | Level 21

@RexDeus9

Alternatively to metadata bound libraries you can always secure tables on OS level and with a new SAS version you could also go for Sever Lockdown (but that requires quite a bit of planning/design to implement).

 

SASKiwi
PROC Star

One option not mentioned is to do folder-level permissions where Group B have a separate folder / library with the two datasets they are allowed to see then another folder for Group A containing all of the datasets (2 being copies). Then it is easy to align OS and metadata permissions so users can't bypass them.

RexDeus9
Quartz | Level 8

Hi SA Skiwi,

 

I've been contemplating that route, but still not sure of the outcome. The OS is Linux, so to put a very short example I think it should look like this:(From the shared folder of data sets)

 

-rwxr-x---. sasadm sasPublic  publicData.sas7bdat
-rwxrwx---. sasadm sasPrivate privateDatasas7bdat

 

Users are assigned to Linux groups according to what they can have access to.

SASKiwi
PROC Star

@Kurt_Bremser - is the Unix guru in this post Smiley Happy I'll leave it up to him.

Kurt_Bremser
Super User

@RexDeus9 wrote:

Hi SA Skiwi,

 

I've been contemplating that route, but still not sure of the outcome. The OS is Linux, so to put a very short example I think it should look like this:(From the shared folder of data sets)

 

-rwxr-x---. sasadm sasPublic  publicData.sas7bdat
-rwxrwx---. sasadm sasPrivate privateDatasas7bdat

 

Users are assigned to Linux groups according to what they can have access to.


One big issue that jumps into my eyes are the x bits. Data files should never have the executable permission set.

That said:

what you get here is one .sas7bdat that is readable by group SASPublic and noone else (except the owner sasadm, of course), and another .sas7bdat that is read/writeable by group SASPrivate.

 

I'd try to solve such an issue this way:

The directory gets these permissions:

drwxr-x--- sasadm SASPublic

publicdata.sas7bdat gets these:

-rw-r----- sasadm SASPublic

privatedata.sas7bdat gets these:

-rw-r----- sasadm SASPrivate

(add group write permission if required)

For this to work, all members of SASPrivate must also be members of SASPublic.

 

But my preferred method would be to keep separate libraries in separate physical directories for the groups.

RexDeus9
Quartz | Level 8

Hi Kurt,

 

Thank you very much for your input. Yes indeed, folders is a good clean way to do it.

 

I managed to get it going with the 'MetaData Secured Library' and setting the Linux User/Group permissions accordingly.

 

'proc authlib' with SAS EG was of great help.

 

Thank you ALL above who contributed on this post, you are wonderful and I hope I can return the favor.

 

 

 

Yvan

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 23 replies
  • 2490 views
  • 4 likes
  • 6 in conversation