Sponsored Content
Full Discussion: adding long user name
Top Forums UNIX for Dummies Questions & Answers adding long user name Post 302105480 by suntac on Friday 2nd of February 2007 04:22:38 AM
Old 02-02-2007
Quote:
Originally Posted by aladdin
hello everybody:
I need to add a 10 character user name to my tru64 system, is there any work around I can use for that.

thanks alot
I do not have a tru64 system so I could not test this for you but it looks like you can change the max length of the usernames.

Have a look at the sysconfigtab file in /etc/sysconfigtab you should be able to alter the login_name_max parameter. This should enable you to use long usernames.

you might want to do some reading on the internet about possible restrictions etc etc.

Please do post the results of your search and testing here.

Regards,
Johan Louwers.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

NIS + adding a new user

I'm setting up NIS+ on Solaris 8 for Intel. None of the books I have explain how to add a new user in the NIS+ envoirnment. Can somebody explain this and are there any url's to get more info. I have populated the nis tables and can do an niscat of the passwd table. There is an nisgrpadd command... (2 Replies)
Discussion started by: txpjl
2 Replies

2. UNIX for Dummies Questions & Answers

Adding a user to a group

Now, its been a while since i done this but I had to add a user to a group. I did that by using the usermod command and now when I superuser to the user's account and issue a "id", i get the desired gid. i mean, output of id indicated the user is assigned to the group i want him to be in. ... (5 Replies)
Discussion started by: TRUEST
5 Replies

3. Solaris

adding a user in single user mode

Just got a solaris 8 blade 150 box with no users, only a root account. no one seems to know the password. I'd like to add one user. So I booted into single user mode via cdrom and added one. Can't seem to login using the new account, though. Here's what I'm using: # useradd -d /tmp/"user" -m... (1 Reply)
Discussion started by: ECBROWN
1 Replies

4. SCO

adding a user

In SCO Unix, where does useradd or adding a user through scoadmin (gui) pick the initial default .profile (login profile) that is put in the users home folder? In Solaris its in the /etc/skel/.profile. I would like to replace it with a custom .profile; so that it's picked automatically when... (1 Reply)
Discussion started by: othman
1 Replies

5. Solaris

help adding a new user/password

I just installed Solaris 10 yesterday and I need to create a new username and password. I'm new to the system and I have yet to learn my way around. I appreciate all help and thank you in advance. (5 Replies)
Discussion started by: bones
5 Replies

6. Solaris

Adding user

Hello All, New to Solaris, I added a new user by cmd " useradd -d /export/home/username -m username " but wondered when I tried to login with this new username, It doesn't automatically redirect to the user's home folder. Can anyone suggest about this? (9 Replies)
Discussion started by: naw_deepak
9 Replies

7. OS X (Apple)

Change Long User Name THrough The Terminal

Hello, I was wondering how to change a user's Long Name through the terminal. I am writing a shell script to change some settings back to the default, and could not find how to do this (or even if you can do this). I do not want to use applescript. (2 Replies)
Discussion started by: The Reepr
2 Replies

8. Shell Programming and Scripting

adding a user to cron.allow

Hello all, I have solaris 10. I have have a script that installs crontab for a user. I want to add some more features to this script. I want to check whether the user exists in etc/cron.d/cron.allow ... if yes then continue the script without adding .... if not, then add that user to the... (6 Replies)
Discussion started by: MisterKhan
6 Replies

9. UNIX for Dummies Questions & Answers

Adding a new user to Unix

Hi, I have my new Unix machine setup. Its just have one user root. I need to create a new user and add it to a group. I want this user to have privileges as root(run all command). I know i need to use useradd command for this.My question is: 1) To which group i should add my user? DO i need... (2 Replies)
Discussion started by: kailash19
2 Replies

10. Shell Programming and Scripting

Adding Long List Of Large Numbers

Hi All, I have a file with long list of numbers. This file contains only one column. These numbers are very large. I am using following command: cat myfile.txt | awk '{ sum+=$1} END {print sum}' The output is coming in scientific notation. How do I get the result in proper format? ... (4 Replies)
Discussion started by: angshuman
4 Replies
sysconfigdb(8)						      System Manager's Manual						    sysconfigdb(8)

NAME
sysconfigdb - Manage the subsystem configuration database SYNOPSIS
/sbin/sysconfigdb -s /sbin/sysconfigdb {-a | -u} [-t target] -f file subsystem-name /sbin/sysconfigdb {-m | -r} [-t target] -f file [subsystem-name] /sbin/sysconfigdb -d [-t target] subsystem-name /sbin/sysconfigdb -l [-t target] [subsystem-name,...] Specifies a subsystem that contains the attributes you want to modify. The subsystem name and attributes are in a stanza-formatted input file. You must specify only one subsystem name when deleting (-d), adding (-a), or replacing (-u) a subsystem. In other cases, when you do not specify a subsystem name the operation is attempted for all the subsystems and attributes specified in the input file. FLAGS
Adds the specified subsystem entry to the target file. Deletes the specified subsystem entry from the target file. Specifies the input file, a stanza-formatted file that contains entries for one or more subsystems. The default target file is the /etc/sysconfigtab file. Specify another target file by using the -t target flag. Lists the specified subsystem entries in the target file. If you do not specify subsystem-name,... arguments, all subsystem entries in the target file are listed. The /etc/sysconfigtab file is the default target file. Merges subsystem attributes specified in the input file with the subsystem attributes in the target file. If you do not specify a subsys- tem-name argument, all subsystem entries in the input file are merged. The /etc/sysconfigtab file is the default target file. Removes the subsystem entries specified in the input file from the target file. The only entries removed are those which have attribute names and val- ues that exactly match those in the input file. If you do not specify a subsystem-name argument, all subsystem entries in the input file with exactly-matching attributes are removed from the target file. The /etc/sysconfigtab file is the default target database file. Syn- chronizes the /etc/sysconfigtab file and the in-memory configuration database by updating the in-memory database so that it matches the /etc/sysconfigtab file. Specifies the target file for the operation. If you do not specify this flag, the default target file is the /etc/sysconfigtab file. Replaces a subsystem entry in the target file with the subsystem entry specified in the input file. DESCRIPTION
The sysconfigdb command is used to manage the /etc/sysconfigtab subsystem configuration database. However, it can also be used to maintain any text file that has the same format as the /etc/sysconfigtab file. The file being managed by the sysconfigdb command is called the tar- get file. By default, the target file is the /etc/sysconfigtab file. To specify another file as a target file, use the -t file flag. To modify a target file, create an input stanza-formatted file, as described in stanza(4). This stanza file contains the name of one or more subsystems, each with a list of attributes and their values. When the target file is the /etc/sysconfigtab file, modifications you make to it are automatically synchronized into the in-memory subsys- tem configuration database. However, the subsystems are unchanged until the next time they are configured. When the target file is another file, there is no synchronization with the in-memory subsystem configuration database. For example, suppose you create the following file named table_mgr.stanza that defines the attributes for a subsystem named table_mgr_1 and a subsystem named tbl_mgr_2: table_mgr_1: size = 10 name = Ten Element Table tbl_mgr_2: size = 5 name = Five Element Table To add the contents of this file to the /etc/sysconfigtab database and to have those modifications synchronized with the in-memory configu- ration database, enter the following commands: # sysconfigdb -a -f table_mgr.stanza table_mgr_1 # sysconfigdb -a -f table_mgr.stanaz tbl_mgr_2 The above example does not change the value of attributes in the running kernel. To modify the value of attributes in the run- ning kernel you must do one of the following: Use the sysconfig -r command Unconfigure and reconfigure the subsystem that contains the attribute value Reboot your system Always use the sysconfigdb command to modify the /etc/sysconfigtab database as it automatically updates the in-memory copy of the database. This ensures that the kernel has immediate access to any changes. The file is also automatically merged during an update installation and changes will be merged into the new system. To add the contents of the file table_mgr.stanza to another text file named /etc/sampleconfigdb, enter the following command: # sysconfigdb -a -t /etc/sampleconfigdb -f table_mgr.stanza Because the output file is not the /etc/sysconfigtab file, the in-memory configuration data- base is not updated. RESTRICTIONS
You must be the root user to execute the commmand when the /etc/sysconfigtab file is the target file and the operation will modify it. EXAMPLES
The following list shows examples of using the sysconfigdb command: To replace an existing entry in the /etc/sysconfigtab file, use the -u flag: # sysconfigdb -u -f table_mgr.stanza table_mgr_1 The above command replaces the table_mgr_1 entry in the /etc/sysconfigtab file with the information in the table_mgr.stanza file for the table_mgr_1 subsystem. The command updates the in-memory copy of the subsystem configuration database to match the modified /etc/sysconfigtab file. To merge information in a stanza-formatted file with the /etc/sysconfigtab file, use the -m flag: # sysconfigdb -m -f table_mgr.stanza tbl_mgr_2 The above command merges the tbl_mgr_2 information from the table_mgr.stanza file with the information already in the tbl_mgr_2 entry in the /etc/sysconfigtab file. The command updates the in-memory copy of the subsystem configuration database to match the modified /etc/sysconfigtab file. To list the entry for a subsystem in the /etc/sysconfigtab file, use the -l flag: # sysconfigdb -l table_mgr_1 table_mgr_1: size = 10 name = Ten Element Table The above command does not update the in-memory copy of the subsystem configuration database. To delete the entry for a subsystem from the /etc/sysconfigtab file, use the -d flag: # sysconfigdb -d table_mgr_1 The above command deletes the table_mgr_1 entry from the /etc/sysconfigtab file and updates the in-mem- ory copy of the subsystem configuration database to match the modified /etc/sysconfigtab file. FILES
The subsystem configuration database RELATED INFORMATION
Commands: cfgmgr(8) sysconfig(8) Files: sysconfigtab(4), stanza(4) delim off sysconfigdb(8)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy