![]() Now my question how can i just extract the second column to use its' data. This gives a two column output the first column is the usernames and the second column is the UID. I have used the following command to get this data:ĭscl /Active\ Directory/All\ Domains list /Users UniqueID To start i have looked at getting a list of the users from the AD and also their corresponding UIDs. During the User creation process i would like to be able to run a script that creates the User home dir, copies a ready-made user template into the users' home dir and then chowns the folder and its contents for that user. I have an OS X Server that is connected to a AD for user authentication. is an operator called shebang which directs the script to the interpreter location. ![]() For executing the script type bash filename.sh. I am perhaps the worlds worst scripter, but to erradicate the fear that is creating a working script i have decided to have a crack at something i have been meaning to do for some time. Create a file using a vi editor (or any other editor). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |