Sponsored Content
Full Discussion: What file(s) am I?
The Lounge What is on Your Mind? What file(s) am I? Post 302591104 by Corona688 on Wednesday 18th of January 2012 02:08:21 PM
Old 01-18-2012
You are lines in /etc/passwd, /etc/shadow, and /etc/groups. These are the bare minimum for a user to login on a UNIX system normally. It's possible for root to force a login into arbitrary UID numbers that don't actually exist, though. Nothing explodes when this happens. They just show up as a number instead of a name, start sitting in /, and have no home directory, no groups, no anything.

Real, actual, login-as-people users probably have a folder under /home/ as well.
This User Gave Thanks to Corona688 For This Post:
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

2. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

3. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
atuser(3)						       AtFS Toolkit Library							 atuser(3)

NAME
atUserValid, atScanUser, atUserName, atUserUid - user handling SYNOPSIS
#include <atfs.h> #include <atfstk.h> void atScanUser (char *userName; Af_user *resultUser); char* atUserName (Af_user *user); Uid_t atUserUid (Af_user *user); int atUserValid (Af_user *user); DESCRIPTION
atScanUser scans the given string userName and tries to derive an AtFS user identification (resultUser) from it. It does not verify the existence of a corresponding UNIX (/etc/passwd) user entry. Use atUserUid to test that. atScanUser understands the following formats: user When the string does not contain an at sign, it is considered to be a plain user name from the current host and domain. user@host In the case that the part after the at sign doe not contain a period, it is assumed to be a hostname. Domain is the current domain. user@host.domain This format can only be recognized, when the given domain is equal to the current domain, and the hostname remains as rest between the at sign and domain name. user@domain An user identification string with a domain name different to the local domain is treated as user@domain, although this might be wrong. atUserName returns a string of the form user@domain generated from the given user structure. If no domain name is given in the structure, it returns user@host instead. With no host and no domain name, just user is returned. The result string resides in static memory and will be overwritten on subsequent calls. atUserUid tries to map the given user structure to a UNIX user identification. It returns the uid on success, -1 otherwise. atUserValid checks the given user structure for plausibility. It returns FALSE on fauilure, a non null value on success. AtFStk-1.12 Fri Jun 25 16:39:50 1993 atuser(3)
All times are GMT -4. The time now is 04:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy