10-07-2012
Mind you Scott I have also been doing the same, but now i will add the space after #... the reason is more for me on some servers (e.g. statistics office...) applications may be user/group developped, not being member of the office I dont remember or know all the changes in their staff.. for me to solve their issues I have to give names of people (for half - owners of specific application...) for them to tell me who is responsible of the application. on another server Im testing moving of obsoleted home dir saved elsewhere to have names but found cases where things took more time : The UID name didnt teach you much on the User true name and could not find a copy of /etc/passwd of the time to help you...
So I tend to comment out in these cases (UID/GID dependant code) and reaffect them to people when they are replacing the previous in usage (and so responsible of the code...) and give new Id to new staff
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everyone,
# cat a.txt
a;b;c;64O
a;b;c;d;ee;f
# cat a.pl
#!/usr/bin/perl
use strict;
use warnings;
my $tmp3 = ",,a,,b,,c,,d,,e,,f,,";
open(my $FA, "a.txt") or die "$!";
while(<$FA>) {
chomp;
my @tmp=split(/\;/, $_);
if ( ($tmp =~ m/^(64O)/i) || ($tmp... (3 Replies)
Discussion started by: jimmy_y
3 Replies
2. Shell Programming and Scripting
Hi everyone,
I`ll try to be most clear I can explaining my help request.
I have 2 folders
Folder A-->This folder receives files through FTP constantly
Folder B-->The files from Folder A are unzipped and then processed in Folder B
Sometimes Folder A doesn`t contain all... (2 Replies)
Discussion started by: cgkmal
2 Replies
3. Emergency UNIX and Linux Support
Dear All,
I was having powerpath 5.2 on SUN server with SVM connected to CLARIION box.Please find the following output :
root # powermt display dev=all
Pseudo name=emcpower3a
CLARiiON ID=CK200073400372
Logical device ID=60060160685D1E004DD97FB647BFDC11
state=alive; policy=CLAROpt;... (1 Reply)
Discussion started by: Reboot
1 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
Hi All,
I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :(
which have similar names ( /var in root and var of some other directory ).:confused:
Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies
6. Red Hat
Hi All,
Accidentally changed ownership of /var directory as root :eek: thinking that I am changing ownership of var directory in other location in the file system:D.Now unable to SSH into the server:(.
By gods grace I was able to regain the access again as server was in control of me at that... (5 Replies)
Discussion started by: shiek.kaleem
5 Replies
7. AIX
I was trying to delete and recreate a filesystem, thinking it would be a quick way of deleting all of the files off of it, and I fear that I messed up. Here is the original entry from /etc/filesystems:
data01:
dev = /dev/fslv00
vfs = jfs2
log ... (5 Replies)
Discussion started by: bstring
5 Replies
8. AIX
I have searched many times but nothing found. Somebody help please :(:(:( (1 Reply)
Discussion started by: bobochacha29
1 Replies
9. 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
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
LEARN ABOUT OSX
dsmemberutil
dsmemberutil(1) BSD General Commands Manual dsmemberutil(1)
NAME
dsmemberutil -- various operations for the membership APIs, including state dump, check memberships, UUIDs, etc.
SYNOPSIS
dsmemberutil [-v] [-h] command [options]
DESCRIPTION
dsmemberutil is a program that implements the membership API calls in a command line utility.
FLAGS
A list of flags and their descriptions:
-h Lists the options for calling dsmemberutil
-v Causes dsmemberutil to operate in verbose mode.
COMMANDS
The action of each command is described below:
getuuid -ugUGsS value
Takes any of the options and returns the associated UUID.
getid -UGsSX value
Takes any of the options and returns the associated UID or GID depending on option provided.
getsid -ugUGX value
Takes any of the options and returns the associated SID.
checkmembership -uUxs param -gGXS param
Returns if a user or group with the associated option is a member of the group.
flushcache Flushes the current membership cache.
Legacy commands such as dumpstate and statistics are gone. See odutil(1) for show cache and statistics operations.
A list of options available. In some cases -xX and -sS can be used synonymously due to nature of the value.
-u uid Using user with UID
-U name Using user with name
-s sid Using user with SID
-x uuid Using user with UUID
-g gid Using group with GID
-G name Using group with name
-S sid Using group with SID
-X uuid Using group with UUID
EXAMPLES
Get a user's uuid:
% dsmemberutil getuuid -u 501
EEA4F2F6-B268-49E7-9C6F-E3C4A37DA4FD
Get a group's uuid
% dsmemberutil getuuid -g 0
ABCDEFAB-CDEF-ABCD-EFAB-CDEF00000000
Get a user's or group's id from a uuid
% dsmemberutil getid -X ABCDEFAB-CDEF-ABCD-EFAB-CDEF0000000C
gid: 12
Check a user's membership in a group (using UID and GID)
% dsmemberutil checkmembership -u 501 -g 0
user is not a member of the group
Check a user's membership in a group (using names)
% dsmemberutil checkmembership -U root -G wheel
user is a member of the group
SEE ALSO
odutil(1), dseditgroup(1), dscacheutil(1)
Darwin Jan 1, 2007 Darwin