OS X - problems reassigning rights to new shortname
I work in an Active Directory environment, and we just hired a new person. However, the manager spellt her name wrong, so I have to set up her user account all over again.
Apple has this solution in their knowledge base (a bunch of other steps are involved that aren't pertinent here):
chown -R <new_name> /Users/<new_name>
So I go to do it, using our naming scheme.
chown -R <bob.hope> "/Users/bob.hope"
I get two responses from terminal: either 'no such file or directory' or 'Is a directory'. This is frustrating because I can see the directory in the finder and in terminal, and I wouldn't tell it to be recursive if it wasn't a directory.
I'm obviously a total noob, but any help would cause me to kiss you full on the mouth.
I did - it was the only way it would take the user name with the period in it. It always gives me a 'separation of user name and group with period is deprecated'.
If I'm gonna do file by file, I might as well just do it all through the Finder - it would take less time. I just figured I blew the syntax and I could still get this method to work...
I did - it was the only way it would take the user name with the period in it. It always gives me a 'separation of user name and group with period is deprecated'.
So the username actually has angle brackets in it? You do know that the shell treats angle brackets as io redirectors?
Do you not think it wise, especially when adding new users to not use a feature that is deprecated?
Sorry, that wasn't clear - the user name is bob.hope, or firstname.lastname...and no, I didn't know the shell treats those as such. I don't even know what those are.
I just know Apple turned me to the terminal to facilitate this, and it doesn't work as they specified, so I thought I'd turn to the Unix gods for help.
Do you understand what I'm trying to do? I've drug a bunch of folders from a directory that was owned by bob.hoping and put them in a new directory (generated by the OS which is bound to Active Directory) called bob.hope. All of the files now need to be owned by bob.hope...maybe I'm just going at it wrong.
Thanks so much for any and all help. And sorry I'm an ignoramus.
The userid should not contain any "funny characters", normally they are just alphanumeric, and in some cases a few other characters are allowed.
Having any of "<" ">" ,"|", "&" will cause you extra admin headaches.
So is your user id "bop.hope" or "<bob.hope>".
Another thing with UNIX systems, is it's actually very easy to change the textual user id because the file system actually stores the numerical number against files, not the name, so all you need to do is delete the user and recreate a user with the same uid.
Say the user name was "bing.crosby" with uid "1024" and you want to change the name to "bob.hope".
And say home directory was "/Users/bing.crosby"
you would now have a directory called "bob.hope" that was owned by "bing.crosby".
Now delete the user "bing.crosby".
you should now see that directory "bob.hope" is owned by "1024".
then create a user called "bob.hope" with uid 1024.
Are you using uid's generated/maintained by AD/LDAP?
good evening .. I have a plea, who I can help me with a management application user rights on the files in a Unix / Linux
I need for college .. .. and not told us no clue .. thank you (1 Reply)
Hello Guru,
I have very unique requirement , need some help.
I have one folder created in one the server A. In this folder , the file getting uploaded from some java based page.
then i am calling scp through key file, which works fine in another folder of server B.
Currently , what i am... (2 Replies)
I realize this is more a gparted concern, but am having a user name problem and not getting in to their forum.
My spouse is reaching a critical space issue in XP and needs to recapture the assigned Ubuntu space to windows.
I can delete it easy enough with gparted live CD, but am lost with... (1 Reply)
Hello all,
Problem.
----------
I'm trying to reassign a referenced variable passed to a 'local'
variable in a function but the local variable refuses to be assigned
the content of the referenced variable.
Any ideas would be appreciated.
Objective.
-----------
Eliminate all $VAR... (1 Reply)
Hi,
Is it true that if I am not the root I can not select access permissions to a file that I own so that my friend (who also isn't the root) can access that file?
And is it true that the only way to accomplish it is to ask the root to "put" my friend into "my" group? Then I could simply set... (1 Reply)
I wan to create a user e.g. Tom. whenever a file is created by user Tom or FTP is done using user as Tom, the rights on the file should be 777 (by default). how can I achieve this. Please help. Its very urgent. (1 Reply)
I want to grant the 'write' right to one user so they can delete log files in a given directory. These are http log files, so a new one is created each day. The file owner is 'nobody'. If I use the command 'chmod a=rwx *' will this work for the new files created each day.
I've tried the... (7 Replies)
At my old job the TAB key was used in Super User mode rather than the default of the ESC key. I was wondering how to reassign the TAB key so that it acquires the functions of the ESC key.
Thanks for the help.
-Shana (5 Replies)