Sponsored Content
Operating Systems OS X (Apple) Scripting User Account Removal Post 302602965 by doctorfoo1 on Tuesday 28th of February 2012 07:38:56 PM
Old 02-28-2012
okay ,..
your probably getting a dscl error. have you tried the dscl read directly in the terminal ?

Code:
dscl /LDAPv3/ldap1.mydomain.com/ -read Users/$aName RecordName UniqueID

if that fails, you need to connect your MAC ( the one doing the work ) to the Directory.
depending on your OS version, open Directory utility and add your LDAP server to the list of services and search policies.

osx 10.6.8 you'll find the utility in /System/Library/CoreServices/Directory Utility
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

creatin user account

hi all, i m tryin to create a new account on the unix work station. do i use 'useradd' command? can u guyz advice on the usage of 'useradd' command as it can comes with 'useradd -D' or 'useradd -e' thanks :confused: (1 Reply)
Discussion started by: damian
1 Replies

2. Post Here to Contact Site Administrators and Moderators

user account

hi how to disable the useraccount in aix (should not remove). (1 Reply)
Discussion started by: chomca
1 Replies

3. UNIX for Dummies Questions & Answers

Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies

4. Shell Programming and Scripting

How to suspend a user account?

Hi, guys. I have two questions: I need to write a script, which can show all the non-suspended users on system, and suspend the selected user account. There are two things I am not sure: 1. How can I suspend user's account? What I think is: add a string to the encrypted password in shadow... (2 Replies)
Discussion started by: daikeyang
2 Replies

5. Red Hat

RPM Updation & Keeping User Change files during removal

Hi All, I have a RPM for an Java based application. Currently it works fine. But recently I want to implement that when newer packages gets installed over the older one, the rpm should only update the older files with the newer one (I know this could be done by rpm -Uvh xxx.rpm), but it... (0 Replies)
Discussion started by: jw_amp
0 Replies

6. Cybersecurity

Please help identify these user account

Please help me identify these user accounts.. bin, lp, nuucp, smbnull, mysql, tftp Can we remove these user or disable these users?We have to apply the security policy about the user identification.Since it was settup by our vendor long time ago. We do not have these informations about these... (3 Replies)
Discussion started by: rdstkg
3 Replies

7. Red Hat

User Account Sync

Hi All, I want to know is there any way where if i add a user in a centos machine the can be replicated to another centos automatically. As i have setup DRBD with heartbeat for apache webserver everything is working fine but the only thing im stuck in is about system account for ftp. Can any... (3 Replies)
Discussion started by: search4u2003
3 Replies

8. Linux

User Account Policy

Hi, i have the following config in the system-auth files auth required /lib/security/$ISA/pam_env.so auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok auth required /lib/security/$ISA/pam_deny.so account required ... (2 Replies)
Discussion started by: yprudent
2 Replies

9. HP-UX

User account

I need to check actual date a user was disabled on my HP-UX server. Audit is claiming the user account was active during the last audit exercise. (7 Replies)
Discussion started by: cyriac_N
7 Replies
NFS4MAPID(8)						    BSD System Manager's Manual 					      NFS4MAPID(8)

NAME
nfs4mapid -- shows NFSv4 mappings from uids or gids to over the wire string names and string names to uids or gids. SYNOPSIS
nfs4mapid [-G] string name nfs4mapid [-G] GUID nfs4mapid -u uid nfs4mapid -g gid DESCRIPTION
In the first form, nfs4mapid shows translations from NFSv4 string representations of users, and with the -G option, groups, to the corre- sponding local uids and gids. In the second form shows the translations from opendirectoy GUIDS to NFSv4 strings. The well known strings names (which are distinguished by a trailing '@' ), such as "OWNER@" and "GROUP@" are represented locally by GUIDs and may not map to uids or gids. To map those GUIDS to NFSv4 strings use this form. The first form can be used to map the well known ids to GUIDs. nfs4mapid does this by looking at the trailing '@' sign. Note that NFSv4 well known names are always groups and are used in ACEs. In the third form, it shows the mapping from uids to the NFSv4 user@domain form. Similarly, in the last form it shows the mapping from gids to the NFSv4 group@domain. nfs4mapid will also show the intermediate GUID translation if used. The NFSv4 domain name should be set with dscl(1). See opendirectory(8) for instructions. -G Map an NFSv4 string to a gid. -u Map a uid to an NFSv4 user@domain string. -g Map a gid to an NFSv4 group@domain string. NOTES
nfs4mapid uses a privileged nfs client system call to pass the translation request down to the kernel, so results will be the same as a request coming from an NFSv4 server. Because of this, nfs4mapid must be run with root privileges. SEE ALSO
dscl(1), nfs(5), opendirectoryd(8), mount_nfs(8), HISTORY
The nfs4mapid utility first appeared in OSX 10.10 BSD
February 20, 2014 BSD
All times are GMT -4. The time now is 05:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy