Sponsored Content
Full Discussion: Global Script Best Practices
Top Forums Shell Programming and Scripting Global Script Best Practices Post 302694747 by jim mcnamara on Friday 31st of August 2012 10:24:32 AM
Old 08-31-2012
Are you talking about deployment of scripts? This is really code managment or playing code librarian. A decent app like Serena allows you to set up complex rules for pushing code into use. There are also some opensource applications for this on sourceforge.net

Best practices for this start with the least privilege principle. Only grant the minimum privilege required and only to those that need it. Same goes for scripts.
This User Gave Thanks to jim mcnamara For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

dynamic global script

Hi, I have to create a global dynamic script which should ask for the env or some other variables and then create the soft links. let's say that I have to create ten soft links and the path for these soft links is different for each env for e.g: WDEV: /d02/app/applmgr/wdev/appl/CDCRM/bin... (2 Replies)
Discussion started by: isingh786
2 Replies

2. Shell Programming and Scripting

Global Variable in a script?

How to create a Global variable within a script file. say i want a varaible called LOGFILE to be used within all the script. how to do that? (2 Replies)
Discussion started by: skyineyes
2 Replies

3. Solaris

How can we copy a directory from Global to Non-global zone?

Hi All, How can we copy a directory from global zone to non-global zone using SCP command? (8 Replies)
Discussion started by: vijaysachin
8 Replies

4. Solaris

Is there two different kernel`s running in global and non global zone?

Hi All, I want to know for non global zone there will be different kernal running? (1 Reply)
Discussion started by: vijaysachin
1 Replies

5. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

6. Solaris

How to see global hostname by logging in non global zones?

Hi guru Could any one help me by letting me know, how to see global hostname by logging in non global zones Regards (2 Replies)
Discussion started by: girish.batra
2 Replies

7. Solaris

How to identify a global or non-global Solaris server?

Hi, I have Solaris zone configured with Solaris 9 and 10. In Solaris 10(non global), I use the command “zonename” to get whether it is global or non-global server. For Solaris 9, what command I can use to get whether it is global or non-global server. Regards, Kalai :confused: (25 Replies)
Discussion started by: kalpeer
25 Replies

8. UNIX for Dummies Questions & Answers

Global - Local script??

Hi, I have a script which can be called from any path on the machine. It kind of acts like a global script. How do I achive this? :confused: The path from which I call it is different from the path where it exists. (where <script name> ) Thanks and Regards, Preetham R. (1 Reply)
Discussion started by: preethgideon
1 Replies

9. Solaris

Global and non-global zone resource sharing - tricky

hi all, Just a simple question but i cant get the answers in the book - In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies

10. Solaris

Date and time change in global and non global zone

Hi, If I change date and time in global zone, then it will affect in non global zones. During this process what files will get affect in non global zones and which mechanism it's using to change. gloabl zone:Solaris 11.3 X86 TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies
privileges(3)						     Library Functions Manual						     privileges(3)

NAME
privileges: priv_addset(), priv_delset(), priv_ismember(), priv_isobserved(), privset_add(), privset_alloc(), privset_copy(), privset_del(), privset_empty(), privset_fill(), privset_free(), privset_intersect(), privset_inverse(), privset_isempty(), privset_ise- qual(), privset_isfull(), privset_ismember(), privset_issubset(), privset_subtract(), privset_union() - privilege manipulation operations for checking and debugging purposes SYNOPSIS
Parameters dstp to type; points to the destination privilege set. num type; specifies a privilege by number. privid type; contains the ID of the privilege to be acted upon. privname type; string that contains the name of the privilege to be acted upon. privp Pointer to type; points to the privilege set to be acted upon. srcp to type; points to the source privilege set. DESCRIPTION
Adds the privilege privname to the privilege set referred to by privp. Removes the privilege privname from the privilege set referred to by privp. Check whether the named privilege privname is a member of the privilege set privp. Checks whether the calling process observes the named privilege privname See privileges.5 for more information on when a process observes a privilege. Adds the privilege privid to the privilege set referred to by dstp. Allocates memory for a privilege set of type but does not initialize the space. The space allocated by this routine should be released using the routine. Copies the privilege set referred to by srcp to the privilege set referred to by dstp. Removes the privilege specified by num from the privilege set referred to by privp. Clears all privileges from privp. Assigns all privileges, including those not currently define on the system, to the privilege set privp. Deallocates the space used by the privilege set referred to by privp. If privp is NULL, no action occurs. Finds the privileges that the privilege sets srcp and dstp have in common and places the results in the privilege set dstp. Inverts the privilege set pointed to by privp. Checks whether the privilege set privp is the empty set. Checks whether the privilege sets srcp and dstp are equal sets. Check whether the privilege set privp is the full set of privileges. A full set of privileges is a set with all bits set, regardless of whether the privi- lege is currently defined on the system. Check whether the privilege privid is a member of the privilege set privp. Checks whether the privilege set srcp is a subset of the privilege set dstp. Subtracts the privilege set referred to by srcp from the privilege set referred to by dstp. Checks the privileges in the privilege sets srcp and dstp and puts any privilege that is in either set into dstp. RETURN VALUE
and return the following values: Successful completion. Function failed. is set to indicate the error. and return the following values: Non-zero number. Condition is TRUE. Condition is FALSE. is set to indicate the error. returns the following values: pointer Successful completions. Returns a non-null pointer to the allocated space. NULL pointer Function failed. Returns a null pointer and sets to indicate the error . ERRORS
If any of the following conditions occur, the functions fail and set Insufficient memory available to allocate space to hold a privilege set. The application can try again later. Invalid argument. SEE ALSO
priv_getbyname(3), priv_getbynum(3), priv_set_to_str(3), priv_str_to_set(3), privileges(5). privileges(3)
All times are GMT -4. The time now is 07:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy