I have a file in the following format. Groups of data merge together and the group number is indicated above each group.
1
adrf
dfgr
dfg
2
dfgr
dfgr
3
dfef
dfr
fd
4
fgrt
fgr
fgg
5
fgrt
fgr (3 Replies)
Experts,
I know when I use id it shows only the primary group information for the given user, and that info comes from passwd file. When I use groups it shows all groups user are member of, however from where come information given by groups command?
grep fmtt3990 /etc/passwd... (6 Replies)
Hi All
I do have a file like this with 6 columns. Groups of data merge together and the group number is indicated above each group.
1
1 12 26 289 3.2e-027 GCGTATGGCGGC
2 12 26 215 6.7e+006 TTCCACCTTTTG
3 9 26 175 ... (1 Reply)
Dear Friends,
I am facing 2 problems while writing a script
1) I have a flat file and I want to captur specific information from it.
Example
I have this string in the file
PACK: P42 77 UNPACK: MHTT DMK
I want to capture whatever is between word PACK: and word UNPACK: including... (8 Replies)
I've this file and need to sort the data in each group
File would look like this ...
cat file1.txt
Reason : ABC
12345-0023
32123-5400
32442-5333
Reason : DEF
42523-3453
23345-3311
Reason : HIJ
454553-0001
I would like to sort each group on the last 4 fileds and print them... (11 Replies)
Hi,
We now have a Samba or Winbind issue. The Linux client under RHEL6 can not get Windows' AD sub-domain info. See the following output please. The main domain 'Global' is shown online, but the sub-domain 'Europe' and 'Asia' are shown offline although they are online.
Commands 'wbinfo -u' and... (0 Replies)
I'm trying to return only one row with the highest value for PCT_MAX_USED. Any suggestions?
When I add this code, I get the ORA-00937 error.
trunc(max(decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100))) pct_max_used
This is the original and returns all rows.
select (select... (3 Replies)
Hi All,
i want to collect all the users info whose id greater than 999 and print the groups information which they belong.
example :
for user in $(cut -d: -f1,3 /etc/passwd | egrep ':{4}$' | cut -d: -f1); do groups $user; done
centos : centos adm wheel systemd-journal
balu : balu
... (2 Replies)
Discussion started by: balu1234
2 Replies
LEARN ABOUT SUNOS
upsd.users
UPSD.USERS(5) NUT Manual UPSD.USERS(5)NAME
upsd.users - Administrative user definitions for NUT upsd
DESCRIPTION
Administrative commands such as setting variables and the instant commands are powerful, and access to them needs to be restricted. This
file defines who may access them, and what is available.
Each user gets its own section. The fields in that section set the parameters associated with that user's privileges. The section begins
with the name of the user in brackets, and continues until the next user name in brackets or EOF. These users are independent of
/etc/passwd.
Here are some examples to get you started:
[admin]
password = mypass
actions = set
actions = fsd
instcmds = all
[pfy]
password = duh
instcmds = test.panel.start
instcmds = test.panel.stop
[monmaster]
password = blah
upsmon master
[monslave]
password = abcd
upsmon slave
FIELDS
password
Set the password for this user.
actions
Allow the user to do certain things with upsd. To specify multiple actions, use multiple instances of the actions field. Valid actions
are:
SET
change the value of certain variables in the UPS
FSD
set the forced shutdown flag in the UPS. This is equivalent to an "on battery + low battery" situation for the purposes of
monitoring.
The list of actions is expected to grow in the future.
instcmds
Let a user initiate specific instant commands. Use "ALL" to grant all commands automatically. To specify multiple commands, use
multiple instances of the instcmds field. For the full list of what your UPS supports, use "upscmd -l".
The cmdvartab file supplied with the distribution contains a list of most of the known command names.
upsmon
Add the necessary actions for a upsmon process to work. This is either set to "master" or "slave".
Do not attempt to assign actions to upsmon by hand, as you may miss something important. This method of designating a "upsmon user" was
created so internal capabilities could be changed later on without breaking existing installations.
SEE ALSO upsd(8), upsd.conf(5)INTERNET RESOURCES
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/25/2012 UPSD.USERS(5)