03-17-2011
in this first section of the code:
echo "What department are you assigned to?"
read department # $department
sleep 2
echo "you are assigned to the: $department"
sleep 7
clear
the variable $department
is the directory that the script will be looking for. if the directory exists then it will pass the if/then/else question and proceed to create the user. if it fails the script is supposed to create the directory that the user entered. my problem is getting the script to create the directory with out being logged in as root.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, Im newbie,
I wanna to create file in each user directory, how to make that script, maybe someone can give me example, im confusing coz i have to change form one user directory to other
Thank U. (8 Replies)
Discussion started by: cleks
8 Replies
2. UNIX for Dummies Questions & Answers
Please help. I am the beginner. Don't understand about archive file. How to create a directory for the files from each archive with name of directory which equivalent to the base name of the archive. eg I have file abc.txt. How can I create a directory name abc. Thank you (1 Reply)
Discussion started by: snail
1 Replies
3. Shell Programming and Scripting
hello.
i hav accepted name of directory from user through a form.now i need to create a directory under cgi-bin of that name.I am not able to do so.n help is required (12 Replies)
Discussion started by: raksha.s
12 Replies
4. Shell Programming and Scripting
Hi All,
I have directory under /opt/test.
The ownership of the test directory is root:root.
I have login to the server as test user.
I need to have some script to create a directory inside /opt/test.
This script will be called as test user.
When I try to execute... (4 Replies)
Discussion started by: kalpeer
4 Replies
5. Solaris
I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that?
Thanks (5 Replies)
Discussion started by: gsander
5 Replies
6. AIX
Hello,
I am new in AIX please tell how can i create user and add group in this user for example, i want to create user umair and want to add this user primanry group DBA and secondary group ORACLE,how can i do this please tell in detail
Thanks,
Umair (1 Reply)
Discussion started by: umair
1 Replies
7. Solaris
Hi All,
I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as:
Unable to remove directory jdk: Read-only file system
Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Discussion started by: Pshah
4 Replies
8. Shell Programming and Scripting
Hello All,
I have to write a shell script and use it in informatica. The script has to perform below actions:
The script gets executed from edw user.
Through the script, a DT folder has to be created under edw_sca user.
Is this scenario possible through a SHELL script or not.
... (2 Replies)
Discussion started by: bghosh
2 Replies
9. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT DEBIAN
sge_access_list
ACCESS_LIST(5) Sun Grid Engine File Formats ACCESS_LIST(5)
NAME
access_list - Sun Grid Engine access list file format
DESCRIPTION
Access lists are used in Sun Grid Engine to define access permissions of users to queues (see queue_conf(5)) or parallel environments (see
sge_pe(5)). A list of currently configured access lists can be displayed via the qconf(1) -sul option. The contents of each enlisted
access list can shown via the -su switch. The output follows the access_list format description. New access lists can be created and exist-
ing can be modified via the -au and -du options to qconf(1).
Departments are a special form of access list that additionally allow assignment of functional shares and override tickets.
Note, Sun Grid Engine allows backslashes () be used to escape newline (
ewline) characters. The backslash and the newline are replaced
with a space (" ") character before any interpretation.
FORMAT
The following list of access_list parameters specifies the access_list content:
name
The name of the access list as defined for userset_name in sge_types(1).
type
The type of the access list, currently one of ACL, or DEPT or a combination of both in a comma separated list. Depending on this parame-
ter the access list can be used as access list only or as a department.
oticket
The amount of override tickets currently assigned to the department.
fshare
The current functional share of the department.
entries
The entries parameter contains the comma separated list of those UNIX users (see user_name in sge_types(1)) or those primary UNIX groups
that are assigned to the access list or the department. Only a user's primary UNIX group is used; secondary groups are ignored. Only sym-
bolic names are allowed. A group is differentiated from a user name by prefixing the group name with a '@' sign. Pure access lists allow
enlisting any user or group in any access list.
When using departments, each user or group enlisted may only be enlisted in one department, in order to ensure a unique assignment of jobs
to departments. To jobs whose users do not match with any of the users or groups enlisted under entries the defaultdepartment is assigned,
if existing.
SEE ALSO
sge_intro(1), sge_types(1), qconf(1), sge_pe(5), queue_conf(5).
COPYRIGHT
See sge_intro(1) for a full statement of rights and permissions.
SGE 6.2u5 $Date$ ACCESS_LIST(5)