10-17-2019
Hello Corona688,
I have both RHEL6.5 and RHEL7.5 and they behave the same. I've not thought about testing it on our couple Ubuntu servers but the need never comes up. The number that we're using as the login ID are employee numbers affectionately known as WorkDay ID's assigned by the AD group. We're using them so the NAS filers play nice with the Linux user when accessing mixed filesystems with permissions controlled by Windows. We were basically forced to since the storage group didn't want to maintain a Linux user name to WorkDay ID map. As for the UID I'm simply incrementing to the next available number. It never dawned on me when this took place that ps would interpret the numeric login ID as the UID. I have to assume that's what's happening. I may end up having to create an alias much like the code you suggested.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
how to check input is "empty" and "numeric" in ksh?
e.g:
./myscript.ksh k
output show: invalid number input
./myscript.ksh
output show: no input
./myscript.ksh 10
output show: input is numeric (6 Replies)
Discussion started by: geoffry
6 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
3. Solaris
Hello,
We have a Solaris 9 machine and recently our client want to create username based on staff numbers (all numeric).
Is there any limitation in Solaris regarding creating username with numeric values (eg: 13598029)?
Thanks & Regards
Aryawarman Mahzar (5 Replies)
Discussion started by: aryamahzar
5 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Shell Programming and Scripting
I want to print any matching IP addresse in List1 with List 2;
List 1
List of IP addresses;
161.85.58.210
250.57.15.129
217.23.162.249
74.76.129.101
30.221.177.237
3.147.200.59
170.58.142.64
127.65.109.33
150.167.242.146
223.3.20.186
25.181.180.99
2.55.199.32 (3 Replies)
Discussion started by: lewk
3 Replies
6. Shell Programming and Scripting
Hi
I'm trying to run a script " abc.sh" which triggers "use.sh" .
abc.sh is nothing but a "expect" script which provides username and password automatically to the use.sh script.
Please find below the scripts:
#abc.sh
#!/usr/bin/expect -f
exec /root/use.sh
expect "*name*"
send... (1 Reply)
Discussion started by: baddykam
1 Replies
7. SuSE
Below is the error I'm getting.
# passwd username
Changing password for username.
New Password:
Reenter New Password:
Password changed.
New UNIX password:
Retype new UNIX password:
Password has been already used. Choose another.
passwd: Authentication token manipulation error# cat... (0 Replies)
Discussion started by: toor13
0 Replies
8. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
9. Linux
Hi Guys Any help is appreciated very much!
I'm trying to use SFTP to an external server using the native SFTP Client in RHEL 6 and 7.
I've been given a username on the remote SFTP Server of myemail@myorg.com.
I can not seem to escape that @ sign no matter what I do.
I've tried these... (16 Replies)
Discussion started by: BG_JrAdmin
16 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
UPSRW(8) NUT Manual UPSRW(8)
NAME
upsrw - UPS variable administration tool
SYNOPSIS
upsrw ups
upsrw -h
upsrw -s variable [-u username] [-p password] ups
DESCRIPTION
upsrw allows you to view and change the read/write variables inside your UPS. It sends commands via the server upsd(8) to your driver,
which configures the hardware for you.
The list of variables that allow you to change their values is based on the capabilities of your UPS equipment. Not all models support this
feature. Typically, cheaper hardware does not support any of them. Run upsrw with a UPS identifier to see what will work for you.
OPTIONS
-h
Display the help message.
-s variable
Specify the variable to be changed inside the UPS. For unattended mode such as in shell scripts, use the format VAR=VALUE to specify
both the variable and the value, for example:
-s input.transfer.high=129
Without this argument, upsrw will just display the list of the variables and their possible values.
Some variables are strings, and can be set to any value within the length limit. Others are enumerated types and can only be set to one
of those values. Others may be within an allowed range of values. Refer to the list to know what's available in your hardware.
-u username
Set the NUT username for the connection to the server. This is optional, and you will be prompted for this when using the -s option if
you don't specify -u on the command line. NUT usernames are defined in upsd.users(5), and are not linked to system usernames.
-p password
Set the password to authenticate to the server. This is also optional like -u, and you will be prompted for it if necessary.
ups
View or change the settings on this UPS. The format for this option is upsname[@hostname[:port]]. The default hostname is "localhost".
UNATTENDED MODE
If you run this program inside a shell script or similar to set variables, you will need to specify all of the information on the command
line. This means using -s VAR=VALUE, -u and -p. Otherwise it will put up a prompt and your program will hang.
This is not necessary when displaying the list, as the username and password are not required for read-only mode.
DIAGNOSTICS
upsrw can't set variables on your UPS unless you provide a valid username and password. If you get "access denied" errors, make sure that
your upsd.users(5) has an entry for you, and that the username you are using has permissions to SET variables.
HISTORY
This program used to be called upsct2, which was ambiguous and confusing.
SEE ALSO
upsd(8), upscmd(8)
Internet resources:
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/24/2012 UPSRW(8)