What file(s) am I?


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? What file(s) am I?
# 1  
Old 01-18-2012
What file(s) am I?

In UNIX, if everything is a file, then what file(s) am I, as a user?
# 2  
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  
Old 01-18-2012
You are /dev/null.

Sorry, I couldn't resist. :-)

lol
This User Gave Thanks to gary_w For This Post:
# 4  
Old 01-19-2012
Quote:
Originally Posted by gary_w
You are /dev/null.

Sorry, I couldn't resist. :-)

lol

ROFL classic!! Smilie
This User Gave Thanks to hedkandi For This Post:
# 5  
Old 01-19-2012
Quote:
In UNIX, if everything is a file ...
This assumption is wrong. What was the full quote in context?


You the user are just an configurable data item.
This User Gave Thanks to methyl For This Post:
# 6  
Old 01-22-2012
Quote:
Originally Posted by gary_w
You are /dev/null.

Sorry, I couldn't resist. :-)

lol
I lol'd Smilie


Quote:
Originally Posted by methyl
This assumption is wrong. What was the full quote in context?


You the user are just an configurable data item.
I based this on what I've read (cs.bgu.ac.il/~arik/usail/concepts/filesystems/everything-is-a-file.html) and what other people told me about UNIX (-based) OS'es. IIRC among one of them was a Linux sysadmin.
Feel free to correct me though, I would love to learn why this assumption is wrong.
# 7  
Old 01-22-2012
methyl is on the correct track, IMO.

The file statement is correct, but individual user accounts are a subset of a group of files. Users change the program state of the kernel because they initiate processes through direct connections that they control.

This is what is meant by the link: any physical entity that is directly/indirectly attached to the computer makes that attachment to the kernel via a file - disks, network connections, terminals, remote connections. Whatever. Since humans are not directly tcp/ip, fddi, or fibre channel (etc) connected, they are not a file, they are parts or subsets of files.

Unless you would like a direct network connection into a wifi NIC into your cerebrum, you have to settle for sub-file status. That won't be available until Diablo III is released (per my son). Sorry....

I think this thread is kinda soft for for a technical forum....
This User Gave Thanks to jim mcnamara For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. 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

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

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
Login or Register to Ask a Question