02-19-2013
The userid was $1 last I looked! OK, maybe user name, but isn't that what admins should be keying on? If you want the uid to match on all hosts, it's yp/nis time.
This User Gave Thanks to DGPickett For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to think of a way to create user ids on multiple Linux systems in one fell swoop without logging onto each system indivually. Is there a way to do this with ssh commands? I don't want to use NIS/LDAP solution just a simple shell script utilitarian methodoloy would suffice. Also, I am... (1 Reply)
Discussion started by: darthur
1 Replies
2. UNIX for Dummies Questions & Answers
I've had Linux when I was young, on one of our first computers and learned it pretty quickly... However, I've been working on Windows for about 7 years now and just made the switch back to Linux, Mandrake 9.1. So I have some problem with creating new user accounts. I could create one, but once I... (3 Replies)
Discussion started by: Arendo
3 Replies
3. Shell Programming and Scripting
I am trying get "df -k" output from multiple hosts along with their hostnames via ssh, my script is appending the "df -k" output from all the nodes to a single file but not getting the hostnames for those nodes, just wondering how to pass more than one command via ssh or may be someone could come... (6 Replies)
Discussion started by: barkath
6 Replies
4. Shell Programming and Scripting
I have a directory full of zip files.
How would I write a bash script to enumerate all the zip files, remove the ".zip" from the file name, create a directory by that name and unzip each zip file into its corresponding directory?
Thanks!
Siegfried (3 Replies)
Discussion started by: siegfried
3 Replies
5. Shell Programming and Scripting
Hi,
Can someone help me with creating a bash shell script.
I need to create a script that gets a positive number n as an argument.
The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies
6. SuSE
Hi
I need to create a user who can have access on only one folder.
for example I created a user "test" . he should have access only on folder
/testfolder.
The problem is that the user will mostly use FileZilla to ftp his files in the testfolder.
In the fileZilla , i want him to be... (21 Replies)
Discussion started by: SystemEng
21 Replies
7. Shell Programming and Scripting
Hi Expert,
How to create a script to reboot multiple hosts in linux?
Thank you. (5 Replies)
Discussion started by: regmaster
5 Replies
8. Shell Programming and Scripting
I have a script on about 15 hosts that I need to run for each host whenever I want (not crontab). Problem is, this script takes 5-10 mins to run for each host. Is there a way I can run the script in parallel for all the hosts instead of 1 at a time? Also, I'm remotely running the script on the... (3 Replies)
Discussion started by: mrskittles99
3 Replies
9. Shell Programming and Scripting
I have a script to detect if a host is pingable or not. The problem is that I would like it to put the nonpingable hosts in one file and the pingable hosts in another. I have come up with this so far:
for ip in `cat /tmp/testlist2`; do ping -c 3 $ip >/dev/null && echo "$ip is up" || echo "$ip... (5 Replies)
Discussion started by: newbie2010
5 Replies
10. Shell Programming and Scripting
Hi everyone!
Some time ago, I had to check connectivity with a big list of hosts, using different formats (protocol://server:port/path/, server:port, ....).
I developed a script that checks the connectivity using different commands (ping, telnet, nc, curl).
It worked for me so I'm sharing it... (9 Replies)
Discussion started by: Fr3dY
9 Replies
LEARN ABOUT LINUX
hosts.hfaxd
HOSTS.HFAXD(5) File Formats Manual HOSTS.HFAXD(5)
NAME
hosts.hfaxd - HylaFAX client access control list
DESCRIPTION
The ASCII file etc/hosts.hfaxd in the HylaFAX spooling area specifies the hosts and users that are permitted to access services through the
hfaxd(8) process. This file must exist for client access; if it is not present then hfaxd will deny all requests for service. Note also
that this file must be readable only by the ``fax'' user; i.e. it should have mode 600 and be owned by ``fax''.
Each newline-terminated entry is a set of colon (:) separated fields, all but the first of which are optional. Trailing null fields and
their separators may be omitted. The most general form is:
client:uid:passwd:adminwd
client is a regular expression to be matched against a string ``user@host'' that is formed from the user string passed to hfaxd with the
USER command and the official host name or the DARPA Internet address, specified in ``dot notation''. If client does not contain an ``@''
then, for backwards compatibility, it is treated as a host for which any user may have access; i.e. it is automatically converted to the
regular expression ``^.*@client$''.
Comments are introduced with the ``#'' character and extend to the end of the line. Any whitespace immediately preceding a comment is also
ignored.
If client has a leading ``!'', then it is interpreted as a class of hosts and users to which access is to be disallowed. That is, if the
pattern matches the client information, then access is denied.
Note that regular expressions are not anchored. That is, a regular expression may match a substring of the ``user@host'' string. Thus
`pb@.*.cl.cam.ac.uk' matches `cpb@mc.cl.cam.ac.uk.esd.sgi.com'. Use ``^'' to match the start of the string and ``$'' to match the end.
Fields following client are optional and specify the following:
uid The numerical user ID to assign to clients that use the entry for access. hfaxd uses the uid to control access to server
resources such as jobs and documents (the value is used to set the group ID of files created by a client).
Multiple clients/users may share the same uid or unique IDs may be created for each client. User IDs may be any number in the
range [0..60002] with 60002 used, by convention, for entries that do not have a uid specified.
passwd The encrypted password. If this field is empty (null) then no password will be demanded when a client logs in; i.e. the USER
command does not need to be followed by a PASS command.
adminwd The encrypted password for this user to gain administrative privileges. If this field is empty (null) then the user is not per-
mitted to have administrative privileges.
EXAMPLE
The following is a sample hosts.hfaxd file. Note that the first entry that matches is taken, so more-specific entries should be placed
first.
^pb@[^.]*.cl.cam.ac.uk$:::hFy8zXq2KaG8s
# pb on a machine directly in cl.cam.ac.uk can
# administer if an admin pw is given
127.0.0.1 # anyone on local host uses the default uid
^sam@flake.*sgi.com$ # Sam on his work machine
^sam@oxford.*Berkeley.*# Sam on any machine starting oxford and containing
# Berkeley, e.g. sam@oxfordberkeley.cl.cam.ac.uk
^.*@.*..esd. # anyone in an esd domain
!^tom@ # Tom Davis is denied access
.*.sgi.com$ # but anyone else at sgi is ok
SEE ALSO
sendfax(1), hfaxd(8), hylafax-server(5)
January 18, 1996 HOSTS.HFAXD(5)