LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2009, 07:21 PM   #16
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910

Which part is confusing you?

In unix/linux the users are *really* numbers.

/etc/password maps usernames to numbers, and points at homes.

A directory under /home can be owned by someone whose name isn't
reflected in the directory name (as was the case in your example).

Just because the directory name isn't listed in /etc/passwd
doesn't necessarily imply that no one owns the directory.

Maybe you should tell us what the setup of that machine is,
and what your specific objective is?



Cheers,
Tink
 
Old 03-31-2009, 07:28 PM   #17
shorte85
Member
 
Registered: Mar 2009
Posts: 47

Original Poster
Rep: Reputation: 15
I'm just basically playing around with linux which is tied into the school's system. If that makes sense? I'm using bash. I'm just trying to practice using linux and what not. Basically studying for class ha. I'm going to college, and the class I'm in is Intro to Linux/Unix.

I guess I'm confused with it all. lol Also, usernames for the system through school we were assigned with has letters with numbers at the end of our user name. Such as the example that was shown before.

I'm just basically trying to come up with the commands to list the users who have home directories, but do not have entry in /etc/passwd.
 
Old 03-31-2009, 08:21 PM   #18
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I can only repeat what I said before: there MAY be users whose name doesn't
match their home directories name, there can be (as in your case) users who
own SEVERAL directories. It is of course possible that the set-up at your
school is totally different, e.g. that by default ALL users homes are owned
by the directory user, and the determining factor is the group-name which
matches a username ... If you could paste a snippet from /etc/passwd and
/etc/group you may get answers that shed a bit more light onto what you're
trying to do there.


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to sort output at latest entries without disturbing the previous entries record nabmufti Programming 4 02-12-2008 12:36 AM
/etc/passwd entries needed in /etc/security/access.conf? bbtg Linux - Enterprise 3 10-16-2007 08:47 AM
Best way to copy passwd entries rtcary Linux - Newbie 3 07-17-2005 02:42 PM
scrpit for finding out new entries in /etc/passwd icefairy83 Linux - Security 8 05-27-2005 12:35 PM
Default entries in /etc/passwd - Slackware J.W. Linux - Security 1 09-23-2003 05:15 PM


All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration