Add user to a Group
How do I add myself to group 80?
Thanks, Glynn
iBook 14.1 G3 700mhz, G4 1.33Gz,iMac G5 2.1Gz 2Gm, Macbook 2.3 Gz, Mac OS X (10.4.11)
iBook 14.1 G3 700mhz, G4 1.33Gz,iMac G5 2.1Gz 2Gm, Macbook 2.3 Gz, Mac OS X (10.4.11)
Glynn wrote:
Thanks, I tried entering:
sh-2.3#dscl .-append /Groups/admin GroupMembership HomeFolderName
And it returns:Cannot open remote host, error: DSOpenDirServiceErr
I also ran:
sudo cat /etc/sudoers
And the return is still:
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
The sudoers file reads like this:
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
Defaults env_reset
Defaults env_keep += "BLOCKSIZE"
Defaults env_keep += "COLORFGBG COLORTERM"
Defaults env_keep += " _CF_USER_TEXTENCODING"
Defaults env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
Defaults env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
Defaults env_keep += "LINES COLUMNS"
Defaults env_keep += "LSCOLORS"
Defaults env_keep += "SSH AUTHSOCK"
Defaults env_keep += "TZ"
Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
Defaults env_keep += "EDITOR VISUAL"
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
glsmith wrote:
Based on that file, he's only ok if he's a member of the admin group, which is the whole problem 🙂
etresoft wrote:
glsmith wrote:
Based on that file, he's only ok if he's a member of the admin group, which is the whole problem 🙂
There is clearly a "problem" here that no one has addressed. They just jumped into dscl, trying to fix things, before investigating exactly what the problem is. No one should have to run dscl to get sudo running unless there were serious problems to begin with. Those problems will remain and surface at some later date.
First, a caveat: if you are the only admin user and you are not in group admin (and you do not know why), your system likely has serious issues which may cause you all kinds of problems and may have security implications. You would be well-advised to reinstall the OS in this case.
glsmith wrote:
It's roughly the same on Leopard.
Based on that file, he's only ok if he's a member of the admin group, which is the whole problem 🙂
I'm still curious why the dscl command didn't work for him. Maybe it's PEBKAC.
Add user to a Group