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!
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
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
2. UNIX for Advanced & Expert Users
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
3. UNIX for Dummies Questions & Answers
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
4. HP-UX
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
5. UNIX for Dummies Questions & Answers
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
6. Solaris
How can I prevent some users from using FTP? (2 Replies)
Discussion started by: Burhan
2 Replies
7. Shell Programming and Scripting
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
8. Ubuntu
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
9. UNIX for Dummies Questions & Answers
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
10. Homework & Coursework Questions
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
LEARN ABOUT FREEBSD
chown
CHOWN(8) BSD System Manager's Manual CHOWN(8)
NAME
chown -- change file owner and group
SYNOPSIS
chown [-fhvx] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhvx] [-R [-H | -L | -P]] :group file ...
DESCRIPTION
The chown utility changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left
unchanged unless -h is used.
The options are as follows:
-H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal
are not followed.)
-L If the -R option is specified, all symbolic links are followed.
-P If the -R option is specified, no symbolic links are followed. This is the default.
-R Change the user ID and/or the group ID of the specified directory trees (recursively, including their contents) and files. Beware of
unintentionally matching the ``..'' hard link to the parent directory when using wildcards like ``.*''.
-f Do not report any failure to change file owner or group, nor modify the exit status to reflect such failures.
-h If the file is a symbolic link, change the user ID and/or the group ID of the link itself.
-v Cause chown to be verbose, showing files as the owner is modified. If the -v flag is specified more than once, chown will print the
filename, followed by the old and new numeric user/group ID.
-x File system mount points are not traversed.
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's
actions are determined by the last one specified.
The owner and group operands are both optional, however, one must be specified. If the group operand is specified, it must be preceded by a
colon (``:'') character.
The owner may be either a numeric user ID or a user name. If a user name is also a numeric user ID, the operand is used as a user name. The
group may be either a numeric group ID or a group name. If a group name is also a numeric group ID, the operand is used as a group name.
The ownership of a file may only be altered by a super-user for obvious security reasons.
EXIT STATUS
The chown utility exits 0 on success, and >0 if an error occurs.
COMPATIBILITY
Previous versions of the chown utility used the dot (``.'') character to distinguish the group name. This has been changed to be a colon
(``:'') character so that user and group names may contain the dot character.
On previous versions of this system, symbolic links did not have owners.
The -v and -x options are non-standard and their use in scripts is not recommended.
SEE ALSO
chgrp(1), find(1), chown(2), fts(3), symlink(7)
STANDARDS
The chown utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compliant.
HISTORY
A chown utility appeared in Version 1 AT&T UNIX.
BSD
February 21, 2010 BSD