Sponsored Content
Top Forums UNIX for Dummies Questions & Answers OS X - problems reassigning rights to new shortname Post 302144176 by porter on Tuesday 6th of November 2007 03:13:05 PM
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?
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. Solaris

FTP rights

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

7. 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

8. 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

9. 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

10. 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
CREATE USER 
MAPPING(7) PostgreSQL 9.2.7 Documentation CREATE USER MAPPING(7) NAME
CREATE_USER_MAPPING - define a new mapping of a user to a foreign server SYNOPSIS
CREATE USER MAPPING FOR { user_name | USER | CURRENT_USER | PUBLIC } SERVER server_name [ OPTIONS ( option 'value' [ , ... ] ) ] DESCRIPTION
CREATE USER MAPPING defines a mapping of a user to a foreign server. A user mapping typically encapsulates connection information that a foreign-data wrapper uses together with the information encapsulated by a foreign server to access an external data resource. The owner of a foreign server can create user mappings for that server for any user. Also, a user can create a user mapping for his own user name if USAGE privilege on the server has been granted to the user. PARAMETERS
user_name The name of an existing user that is mapped to foreign server. CURRENT_USER and USER match the name of the current user. When PUBLIC is specified, a so-called public mapping is created that is used when no user-specific mapping is applicable. server_name The name of an existing server for which the user mapping is to be created. OPTIONS ( option 'value' [, ... ] ) This clause specifies the options of the user mapping. The options typically define the actual user name and password of the mapping. Option names must be unique. The allowed option names and values are specific to the server's foreign-data wrapper. EXAMPLES
Create a user mapping for user bob, server foo: CREATE USER MAPPING FOR bob SERVER foo OPTIONS (user 'bob', password 'secret'); COMPATIBILITY
CREATE USER MAPPING conforms to ISO/IEC 9075-9 (SQL/MED). SEE ALSO
ALTER USER MAPPING (ALTER_USER_MAPPING(7)), DROP USER MAPPING (DROP_USER_MAPPING(7)), CREATE FOREIGN DATA WRAPPER (CREATE_FOREIGN_DATA_WRAPPER(7)), CREATE SERVER (CREATE_SERVER(7)) PostgreSQL 9.2.7 2014-02-17 CREATE USER MAPPING(7)
All times are GMT -4. The time now is 06:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy