BookmarkSubscribeRSS Feed
maubry
Obsidian | Level 7

Hi all,

I'm facing an issue about SASUSER library and I don't find any solution.

 

in /sas/config/lev1/sasapp/workspaceserver/WorkspaceServer_usermods.sh

 

export SASUSER=$(id -un)

in /sas/config/lev1/sasapp/sasv9_usermods.cfg

 

-SASUSER "/sas/sasuser/$SASUSER/"

in the filesystem

lrwxrwxrwx.  1 sas sas   13 Oct  6 17:19 sasuser -> share/sasuser

in /sas/share

drwxrwsrwt.  4 sas sas   50 Dec 16 15:47 sasuser

via the filesystem, I can create a file with a user who is member of the sas group.

But via Enterprise Guide, if I try to create a dataset in SASUSER library (/sas/sasuser/<userid>), I receive the following error message:

 

ERROR: Write access to member SASUSER.TEST.DATA is denied.

 

What I missed ?

 

many thanks for your help

 

Mike

4 REPLIES 4
ballardw
Super User

You might describe why you think you need to work with SASUSER.

 

 

Revealed wisdom for many iterations of SAS, going back to version 6, is that you should not really be using the SASUSER library for data. Create other libraries for your data. SASUSER is supposed to be for things like the preferences of your use such as appear in the Profile catalog.

 

 

Reeza
Super User
SAS User shouldn't be set to a temporary work space for each users, usually that's a folder under home for each users, ie /home/maubry/....



SASKiwi
PROC Star

Check the RSASUSER SAS option in your SAS session by running this:

proc options option = rsasuser;
run;

If you see this:

34         proc options option = rsasuser;
35         run;

    SAS (r) Proprietary Software Release 9.4  TS1M2

 RSASUSER          Opens the Sasuser library in Read-Only mode.
NOTE: PROCEDURE OPTIONS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

 

the option is set on you will get the behaviour you are seeing:

34         data sasuser.class;
35           set sashelp.class;
36         run;

ERROR: Write access to member SASUSER.CLASS.DATA is denied.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

 

Tom
Super User Tom
Super User

Do you really have a symbolic link to a relative path?  That seems like a bad idea.

lrwxrwxrwx.  1 sas sas   13 Oct  6 17:19 sasuser -> share/sasuser

Do you even have a share subdirectory?  Does it contain a sasuser directory?

 

But let's assume you have figured out the paths properly then the error message is saying the the directory you pointed SASUSER to for this user is one that this user cannot write to.  So the permissions on that directory are wrong.

What are the permission on that directory for the userid you are using?  

Is it owned by that userid? Is the user write bit set?

Is the user at least the group that owns the directory?  Is the group write bit set?

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 433 views
  • 4 likes
  • 5 in conversation