10 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a script that displays all usernames and their UIDs in the following fashion:
name1 uid=999
name2... (2 Replies)
Discussion started by: baniel
2 Replies
2. IP Networking
Greetings folks,
I have a rather lengthy list of banned IP ranges in iptables. Initially it was constructed as a rather ad-hoc affair, then later I discovered a site which had IP Block By Country lists, and imported several into iptables.
If possible, I'd like to be able to verify if the list... (0 Replies)
Discussion started by: putter1900
0 Replies
3. Shell Programming and Scripting
Hi,
I have two files
file1 chr1_22450_22500
chr2_12300_12350
chr1_34500_34550
file2 11000_13000
15000_19000
33000_44000
If the file 1 ranges fall between file2 ranges then assign the value of file2 in column 2 to file1
output:
chr2_12300_12350 11000_13000
chr1_34500_34550 ... (7 Replies)
Discussion started by: Diya123
7 Replies
4. Red Hat
Hi,
I'm considering implementing pam_krb5 on RHEL 5.5 and Solaris 10, and I'm in an environment that has a number of legacy NIS domains. They've all been migrated into Active Directory, RFC2307, with the NIS maps that differed in each domain kept within its own container. However, users and... (0 Replies)
Discussion started by: cambridge
0 Replies
5. UNIX for Dummies Questions & Answers
I have a list of about 200,000 lines in a text file that look like this:
1 1 120
1 80 200
1 150 270
5 50 170
5 100 220
5 300 420
The first column is an identifier, the next 2 columns are a range (always 120 value range)
I'm trying fill in the values of those ranges, and remove... (4 Replies)
Discussion started by: knott76
4 Replies
6. Shell Programming and Scripting
Hi,
Please anyone help to achive this using perl or unix scripting .
This is date in my table 20090224,based on the date need to check the files,If file exist for that date then increment by 1 for that date and check till max date 'i.e.20090301 and push those files .
files1_20090224... (2 Replies)
Discussion started by: akil
2 Replies
7. Solaris
Hi all,
I am bit confused about UIDs on my server where LDAP athentication happens. UIDs are generally in the range of 0-65534 for any Solaris OS version(correct if i am wrong). My server is running on Solaris 9. Below are user accounts available on my server.
... (10 Replies)
Discussion started by: vvpotugunta
10 Replies
8. UNIX for Advanced & Expert Users
Hi,
What is the best ways to keep UIDs and GIDs consistent across unix and linux server. my company have a servers running on hpux, linux, aix and many of them have veritas cluster and hacmp running, many time user account have been created only on one of the cluster node and not the others... (4 Replies)
Discussion started by: robertngo
4 Replies
9. AIX
We have a problem where we delete a user and their associated UID gets dumped back in the UID pool. The if we immediately create a another (new) user, AIX reuses the last UID, the one that was just released. This is causing a problem when reports are being generated because the new users name is... (2 Replies)
Discussion started by: xsys2000
2 Replies
10. UNIX for Dummies Questions & Answers
hello guys,
well as i mentioned first i have a serious problem, i need your help.
i have a hosting plan with linux, apache and php.
i have a script (that have my UID=32256) inside my web site (in the panel folder -see below-) that creates new scripts (in the pages folder) (the new scripts... (1 Reply)
Discussion started by: mehdi
1 Replies
UGIDFW(8) BSD System Manager's Manual UGIDFW(8)
NAME
ugidfw -- firewall-like access controls for file system objects
SYNOPSIS
ugidfw add subject [not] [[!] uid uid | minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] jailid jailid] object [not] [[!] uid uid |
minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] filesys path] [[!] suid] [[!] sgid] [[!] uid_of_subject] [[!] gid_of_subject] [[!]
type ardbclsp] mode arswxn
ugidfw list
ugidfw set rulenum subject [not] [[!] uid uid | minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] jailid jailid] object [not] [[!] uid uid |
minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] filesys path] [[!] suid] [[!] sgid] [[!] uid_of_subject] [[!] gid_of_subject] [[!]
type ardbclsp] mode arswxn
ugidfw remove rulenum
DESCRIPTION
The ugidfw utility provides an ipfw(8)-like interface to manage access to file system objects by UID and GID, supported by the
mac_bsdextended(4) mac(9) policy.
The arguments are as follows:
add subject ... object ... mode arswxn
Add a new rule, automatically selecting the rule number. See the description of set for syntax information.
list Produces a list of all the current ugidfw rules in the system.
set rulenum subject ... object ... mode arswxn
Add a new rule or modify an existing rule. The arguments are as follows:
rulenum Rule number. Entries with a lower rule number are applied first; placing the most frequently-matched rules at the
beginning of the list (i.e., lower-numbered) will yield a slight performance increase.
subject [not] [[!] uid uid | minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] jailid jailid]
Subjects performing an operation must match all the conditions given. A leading not means that the subject should not
match the remainder of the specification. A condition may be prefixed by ! to indicate that particular condition must
not match the subject. The subject can be required to have a particular uid and/or gid. A range of uids/gids can be
specified, separated by a colon. The subject can be required to be in a particular jail with the jailid.
object [not] [[!] uid uid | minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] filesys path] [[!] suid] [[!] sgid] [[!]
uid_of_subject] [[!] gid_of_subject] [[!] type ardbclsp]
The rule will apply only to objects matching all the specified conditions. A leading not means that the object should
not match all the remaining conditions. A condition may be prefixed by ! to indicate that particular condition must
not match the object. Objects can be required to be owned by the user and/or group specified by uid and/or gid. A
range of uids/gids can be specified, separated by a colon. The object can be required to be in a particular filesys-
tem by specifying the filesystem using filesys. Note, if the filesystem is unmounted and remounted, then the rule may
need to be reapplied to ensure the correct filesystem id is used. The object can be required to have the suid or sgid
bits set. The owner of the object can be required to match the uid_of_subject or the gid_of_subject attempting the
operation. The type of the object can be restricted to a subset of the following types.
a any file type
r a regular file
d a directory
b a block special device
c a character special device
l a symbolic link
s a unix domain socket
p a named pipe (FIFO)
mode arswxn
Similar to chmod(1), each character represents an access mode. If the rule applies, the specified access permissions
are enforced for the object. When a character is specified in the rule, the rule will allow for the operation. Con-
versely, not including it will cause the operation to be denied. The definitions of each character are as follows:
a administrative operations
r read access
s access to file attributes
w write access
x execute access
n none
remove rulenum
Disable and remove the rule with the specified rule number.
SEE ALSO
mac_bsdextended(4), mac(9)
HISTORY
The ugidfw utility first appeared in FreeBSD 5.0.
AUTHORS
This software was contributed to the FreeBSD Project by NAI Labs, the Security Research Division of Network Associates Inc. under
DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program.
BSD
February 24, 2004 BSD