Sponsored Content
Full Discussion: UID problem
Top Forums UNIX for Dummies Questions & Answers UID problem Post 8306 by rwb1959 on Tuesday 9th of October 2001 08:13:50 PM
Old 10-09-2001
No problem Chris. I and all the other folks
participating on this forum are glad to be
of any help we can Smilie

I'm sorry I haven't been much help on your
problem. If your machine has never been
connected to the "outside", It would be safe
to say that your system has not been compromised.
I would say... remove the users (userdel) and
re-add them (useradd) but you have already tried
that. If you don't mind re-installing or going
to RedHat, I would say... do so and go ahead
and reformat the disk (it may come up with bad
blocks or something). On securing telnet and ftp,
you can simply edit your /etc/inetd.conf file
and you should see two lines like...
ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
...simply insert a "#" (no quotes) in the very
beginning of the line. Once this is done, you
will need to "tell" inetd to re-read the file.
run the "ps" command to find the PID do...
# ps -ef | grep inetd
root 569 1 0 Jul10 ? 00:00:00 inetd
# kill -HUP 569

...the above shows my inetd PID as 569. You would
substitute whatever PID your system shows.
This will turn off those services. When you get
more adventurous, check out the man page
for hosts_access(5) use: man 5 hosts_access
and you can set up the /etc/hosts.allow and
/etc/hosts.deny files to allow ftp and telnet
access to very specific systems or ranges of
IP addresses only. Don't forget to uncomment
the lines in /etc/inetd.conf and HUP inetd
again.

I know it's alot of stuff to assimilate so
I hope I haven't created more confusion Smilie
 

10 More Discussions You Might Find Interesting

1. AIX

UID Change

Currently, I have about 7 servers and the uid for a given person is different on each server. I want to make the uid's the same for a given username on each server. I know how to change the uid via smit, but when I do the previous uid number shows up as the owner for the files of that username.... (4 Replies)
Discussion started by: mcateriny
4 Replies

2. UNIX for Dummies Questions & Answers

Reversing UID's

Is it possible given a uid to determine information about the person with the uid? An example would be simple information regarding what group and the name of the person associated with that uid. It seems there is probably an easy staring me in the face but i cant seem to find it... (3 Replies)
Discussion started by: dreaming1
3 Replies

3. AIX

UID not to be reused

Hello I want to find out how I can make sure in AIX that the UIDs cannot be reused Until after 6 Months after the user has left. Thanks, Noori (4 Replies)
Discussion started by: noori
4 Replies

4. Shell Programming and Scripting

checking uid

How do i go about getting the uid of the user and verify ? if then echo "You are not a superuser, please login as a superuser" exit1; fi the above code doesn't work. can some guru please help me. 1. how to get the uid of the user ? i know by typing id but how to... (7 Replies)
Discussion started by: filthymonk
7 Replies

5. Shell Programming and Scripting

uid script help

i need a script to process a password file and based on the UIDs in the password file, generate the new UID that is 1 greater than the highest uid. i have some script logic but i dont really understand it. any help? #!/usr/bin/perl ########################################## #... (3 Replies)
Discussion started by: livewire06
3 Replies

6. Shell Programming and Scripting

UId

is tty command opens a process in the system if yes then why process got the userid????? (5 Replies)
Discussion started by: Mac91
5 Replies

7. UNIX for Dummies Questions & Answers

Duplicated UID

Hi folks! I need you help to discover what's the impact of a duplicated UID in an operating system. What's the meaning when someone put in different users the same UID? (3 Replies)
Discussion started by: phcostabh
3 Replies

8. AIX

More than 1 UID 0

Hi, Can any one please tell what are the risks of having more than one users having UID 0 (root)? Thanks Naveed (9 Replies)
Discussion started by: naveedaix
9 Replies

9. Solaris

Changing uid value

Hi, I want to change user id gefadm ,uid=0(root) gid=0(root) to uid=16649(isaadmin) gid=16284(dstage), how can i change this uid ,gid one value to another value. Please provide the steps how can i change , uid=0(root) gid=0(root) to uid=16649(isaadmin) gid=16284(dstage). Thanks in advance for... (2 Replies)
Discussion started by: sridhardwh
2 Replies

10. Solaris

UID Admin

Hi All, I have to give permission to one of the groups called as "ABC" as like the permissions of the group "UNIXADM". Could you please some one help on this issue ? (3 Replies)
Discussion started by: ramareddi16
3 Replies
TCPD(8) 						      System Manager's Manual							   TCPD(8)

NAME
tcpd - access control facility for internet services DESCRIPTION
The tcpd program can be set up to monitor incoming requests for telnet, finger, ftp, exec, rsh, rlogin, tftp, talk, comsat and other ser- vices that have a one-to-one mapping onto executable files. The program supports both 4.3BSD-style sockets and System V.4-style TLI. Functionality may be limited when the protocol underneath TLI is not an internet protocol. There are two possible modes of operation: execution of tcpd before a service started by inetd, or linking a daemon with the libwrap shared library as documented in the hosts_access(3) manual page. Operation when started by inetd is as follows: whenever a request for service arrives, the inetd daemon is tricked into running the tcpd program instead of the desired server. tcpd logs the request and does some addi- tional checks. When all is well, tcpd runs the appropriate server program and goes away. Optional features are: pattern-based access control, client username lookups with the RFC 931 etc. protocol, protection against hosts that pretend to have someone elses host name, and protection against hosts that pretend to have someone elses network address. LOGGING
Connections that are monitored by tcpd are reported through the syslog(3) facility. Each record contains a time stamp, the client host name and the name of the requested service. The information can be useful to detect unwanted activities, especially when logfile information from several hosts is merged. In order to find out where your logs are going, examine the syslog configuration file, usually /etc/syslog.conf. ACCESS CONTROL
Optionally, tcpd supports a simple form of access control that is based on pattern matching. The access-control software provides hooks for the execution of shell commands when a pattern fires. For details, see the hosts_access(5) manual page. HOST NAME VERIFICATION
The authentication scheme of some protocols (rlogin, rsh) relies on host names. Some implementations believe the host name that they get from any random name server; other implementations are more careful but use a flawed algorithm. tcpd verifies the client host name that is returned by the address->name DNS server by looking at the host name and address that are returned by the name->address DNS server. If any discrepancy is detected, tcpd concludes that it is dealing with a host that pretends to have someone elses host name. If the sources are compiled with -DPARANOID, tcpd will drop the connection in case of a host name/address mismatch. Otherwise, the host- name can be matched with the PARANOID wildcard, after which suitable action can be taken. HOST ADDRESS SPOOFING
Optionally, tcpd disables source-routing socket options on every connection that it deals with. This will take care of most attacks from hosts that pretend to have an address that belongs to someone elses network. UDP services do not benefit from this protection. This feature must be turned on at compile time. RFC 931 When RFC 931 etc. lookups are enabled (compile-time option) tcpd will attempt to establish the name of the client user. This will succeed only if the client host runs an RFC 931-compliant daemon. Client user name lookups will not work for datagram-oriented connections, and may cause noticeable delays in the case of connections from PCs. EXAMPLES
The details of using tcpd depend on pathname information that was compiled into the program. EXAMPLE 1 This example applies when tcpd expects that the original network daemons will be moved to an "other" place. In order to monitor access to the finger service, move the original finger daemon to the "other" place and install tcpd in the place of the original finger daemon. No changes are required to configuration files. # mkdir /other/place # mv /usr/sbin/in.fingerd /other/place # cp tcpd /usr/sbin/in.fingerd The example assumes that the network daemons live in /usr/sbin. On some systems, network daemons live in /usr/sbin or in /usr/libexec, or have no `in.' prefix to their name. EXAMPLE 2 This example applies when tcpd expects that the network daemons are left in their original place. In order to monitor access to the finger service, perform the following edits on the inetd configuration file (usually /etc/inetd.conf): finger stream tcp nowait nobody /usr/sbin/in.fingerd in.fingerd becomes: finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd The example assumes that the network daemons live in /usr/sbin. On some systems, network daemons live in /usr/sbin or in /usr/libexec, the daemons have no `in.' prefix to their name, or there is no userid field in the inetd configuration file. Similar changes will be needed for the other services that are to be covered by tcpd. Send a `kill -HUP' to the inetd(8) process to make the changes effective. EXAMPLE 3 In the case of daemons that do not live in a common directory ("secret" or otherwise), edit the inetd configuration file so that it speci- fies an absolute path name for the process name field. For example: ntalk dgram udp wait root /usr/sbin/tcpd /usr/local/lib/ntalkd Only the last component (ntalkd) of the pathname will be used for access control and logging. BUGS
Some UDP (and RPC) daemons linger around for a while after they have finished their work, in case another request comes in. In the inetd configuration file these services are registered with the wait option. Only the request that started such a daemon will be logged. The program does not work with RPC services over TCP. These services are registered as rpc/tcp in the inetd configuration file. The only non-trivial service that is affected by this limitation is rexd, which is used by the on(1) command. This is no great loss. On most sys- tems, rexd is less secure than a wildcard in /etc/hosts.equiv. RPC broadcast requests (for example: rwall, rup, rusers) always appear to come from the responding host. What happens is that the client broadcasts the request to all portmap daemons on its network; each portmap daemon forwards the request to a local daemon. As far as the rwall etc. daemons know, the request comes from the local host. FILES
The default locations of the host access control tables are: /etc/hosts.allow /etc/hosts.deny SEE ALSO
hosts_access(3), functions provided by the libwrap library. hosts_access(5), format of the tcpd access control tables. syslog.conf(5), format of the syslogd control file. inetd.conf(5), format of the inetd control file. AUTHORS
Wietse Venema (wietse@wzv.win.tue.nl), Department of Mathematics and Computing Science, Eindhoven University of Technology Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands TCPD(8)
All times are GMT -4. The time now is 04:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy