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
# 8  
Old 11-06-2007
You should also be able to use "chown" with the numeric id.
# 9  
Old 11-07-2007
Quote:
Originally Posted by riptorn41
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>
angled brackets in this context mean this is a field you *must* enter. But do not enter the angled brackets.

If fields are wrapped in square brackets [ ], that indicates an optional field.

as mentioned, in a shell, angled brackets are used to redirect things; typically resulting in new files being created. your chown had 2 redirects which is why you were told "bob.hope is a directory" -- if /Users/bob.hope didn't exist at all, your command would have created a _file_ called /Users/bob.hope.

But because it already existed as a directory, the shell didn't let you overwrite it and gave you the reason why. If you had a _file_ called /Users/bob.hope, then your command would have overwritten that file.

So in this instance, you haven't broken it, but care does need to be taken when using redirects.
 
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