Privacy and Security Notice

Archived Messages for CLAS_SLOW_CONTROL_1996@cebaf.gov: Re: permissions and setup

Re: permissions and setup

James Muguira (muguira@CEBAF.GOV)
Tue, 08 Oct 1996 17:16:05 -0400

Mark M. Ito wrote:
>
> Folks,
>
> On cebafb/e/h we have been having some problems with permissions. If
> you want the hallbe group to have write permission for newly created
> files, you need to set your umask with the following command:
>
> umask 012
>
> If you want to give group write permission to a file called "filename"
> then issue the command
>
> chmod g+w filename
>
> If you want to do this recusively for all files in and underneath a
> directory called "dirname" then
>
> chmod -R g+w dirname
>
> In addition I have written an alternate setup script. This requires
> three steps but is a bit more flexible:
>
> 1) Set your default group to hallbe. If this is already your default
> group, you can omit this step. This command puts you in a new shell
> with the new default group.
>
> newgrp hallbe
>
> 2) Define which version of EPICS you want to use:
>
> setenv EPICS /usr/site2/epics_physics/hallb
>
> 3) Set up the other stuff:
>
> source $EPICS/install/setup_epics
>
> tcl/tk is _not_ setup in this script.
>
> --
> Mark M. Ito, Thomas Jefferson National Accelerator Facility
> 12000 Jefferson Ave., Mail Stop 12H, Newport News, VA 23606
> Email: marki@cebaf.gov, Office: (757)269-7175, Pager: (757)680-7175

FYI

1. a good way to find out exactly what group you are in at the moment:
issue this:

id

this is mine on cebafh/b

uid=1635(muguira) gid=146(clas)
groups=145(clasadmin),189(ccfarm),200(farmb),152
(hv)

The active group (at this moment) is clas (gid=146). The id command is
better to use than groups.

2. The best way to deal with groups is to have the system admin put you
into the group and have the sys admin make that your default. In
general, you DO NOT want to be in the users group (for a lot of
reasons).

JAM