OS X - problems reassigning rights to new shortname


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers OS X - problems reassigning rights to new shortname
# 1  
Old 11-06-2007
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.

Thanks!
# 2  
Old 11-06-2007
Why don't you do it file by file to confirm which file it is that it is complaining about?

Also, do

ls -ld /Users/bob.hope

before hand just to confirm.

I hope you aren't actually using those angle brackets in your command?
# 3  
Old 11-06-2007
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...
# 4  
Old 11-06-2007
Quote:
Originally Posted by riptorn41
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?
# 5  
Old 11-06-2007
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.
# 6  
Old 11-06-2007
Hi,

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"

Code:
cd /Users
ls -ld bing.crosby
mv bing.crosby bob.hope
ls -ld bob.hope

you would now have a directory called "bob.hope" that was owned by "bing.crosby".

Now delete the user "bing.crosby".

Code:
cd /Users
ls -ld bob.hope

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?
# 7  
Old 11-06-2007
the user name is bob.hope

and we are using uids from AD.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

user rights

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)
Discussion started by: alex90
1 Replies

2. UNIX for Dummies Questions & Answers

Access Rights

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)
Discussion started by: u263066
2 Replies

3. Ubuntu

deleting ubuntu partition and reassigning unallocated

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)
Discussion started by: 77yrold
1 Replies

4. Shell Programming and Scripting

[bash] reassigning referenced variables in functions

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)
Discussion started by: ASGR
1 Replies

5. Solaris

FTP rights

How can I prevent some users from using FTP? (2 Replies)
Discussion started by: Burhan
2 Replies

6. UNIX for Dummies Questions & Answers

Unix access rights

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)
Discussion started by: rudo
1 Replies

7. HP-UX

User rights

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)
Discussion started by: sharmavr
1 Replies

8. UNIX for Dummies Questions & Answers

chmod rights issue?

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)
Discussion started by: Westy564
7 Replies

9. UNIX for Advanced & Expert Users

reassigning key functions in super user mode

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)
Discussion started by: lehcar511
5 Replies

10. UNIX Desktop Questions & Answers

Groups Rights

I just created a group. How do i make the groups read only to a specific file systems.(home directory). (3 Replies)
Discussion started by: niasdad
3 Replies
Login or Register to Ask a Question