LinuxQuestions.org
Review your favorite Linux distribution.
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 09-30-2011, 05:37 AM   #1
shravankumar
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
Thumbs up Shadow file


If shadow file no permissions, Owner & Group owner also a root,but how it can update if another user change its password and that user unable to login shadow file
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-30-2011, 06:25 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
The passwd utility, /usr/bin/passwd, has this permission mask:
Code:
ls -l /usr/bin/passwd
-rws--x--x 1 root root 68712 Apr 11 00:22 /usr/bin/passwd*
That "rws" is the so-called super-user bit turned on, meaning that any user executing it has, for the duration of the execution, root's permissions; the two x's mean that anybody can execute the utility. So, "you" or "anybody else" can execute the passwd utility and will be able to change their own password (root can change anybody's password but a user can only change their own).

The file /etc/shadow mask is
Code:
-rw-r----- 1 root shadow 674 Jun 25 12:45 /etc/shadow
which means that only root can write to it, the x means that only the shadow group can read from it and there is no public access at all; i.e., "you" cannot see its content.

The passwd utility is written so that the only thing a user can do with it is change their own password but can't fiddle with anything else (the utility "knows" who you are when you execute it, by your numeric user identification number, your UID, which is the third field on the line in /etec/passwd; if your UID is not zero, you're not root and you're restricted as to what you can and cannot do).

That's pretty much that.

Hope this helps some.
 
2 members found this post helpful.
Old 12-01-2011, 11:53 PM   #3
shravankumar
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
1.If Windows is server and Linux as client then can we share the files
 
0 members found this post helpful.
Old 12-01-2011, 11:54 PM   #4
shravankumar
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
if we enter in to ftp> then what command is used to come from directory
 
0 members found this post helpful.
Old 12-01-2011, 11:57 PM   #5
shravankumar
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Anybody send me Linux Interview questions
 
0 members found this post helpful.
Old 12-02-2011, 08:27 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by shravankumar
1.If Windows is server and Linux as client then can we share the files
Yes, and this question has been asked/answered on this site MANY times. That's what Samba is for, letting Linux and Windows systems share files.
Quote:
Originally Posted by shravankumar
if we enter in to ftp> then what command is used to come from directory
No idea what you're asking. Doing a "dir" is the first answer that comes to mind, but you could also type in "help", and get a list of commands yourself...perhaps, look them up???
Quote:
Originally Posted by shravankumar View Post
Anybody send me Linux Interview questions
No. First, because there's NO WAY anyone can know what you're going to get asked on an interview. Second, if you don't know the answers to the questions on your own, you're not qualified to have the job. If you want to know the answers for a 'Linux interview', then learn Linux first.
 
2 members found this post helpful.
Old 12-04-2011, 11:27 PM   #7
shravankumar
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
What is the difference between /home & /localusr directories?

---------- Post added 12-05-11 at 12:28 AM ----------

What is difference between systemuser & Normaluser?
 
0 members found this post helpful.
Old 12-05-2011, 12:03 AM   #8
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Quote:
Originally Posted by shravankumar View Post
What is the difference between /home & /localusr directories?

---------- Post added 12-05-11 at 12:28 AM ----------

What is difference between systemuser & Normaluser?
/home is a default(not always) home directory for all user in unix based machine. while /localusr is package dependent, not all unix machines will have this directory.

"systemuser & Normaluser " these notations also package/distribution dependent.

Last edited by raju.mopidevi; 12-05-2011 at 09:36 PM.
 
0 members found this post helpful.
Old 12-05-2011, 10:55 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by raju.mopidevi View Post
/home is home directory for all user in unix based machine. while /localusr is package dependent, not all unix machines will have this directory.

"systemuser & Normaluser " these notations also package/distribution dependent.
Sorry, but these are not correct answers.

/home *USUALLY* is the location where home directories for users are created. However, the partition can be named ANYTHING, and the users home directories can be ANYWHERE, so this is a guideline, not an absolute. There is no /localusr directory on most installations...but if you mean /usr/local, that's where some shared files that you want users to be able to read/execute (but not necessarily write) are stored.

System users are built for system services...things like FTP users, NFS users, etc., that need to be present for a service to run, but don't have a person associated with them, and don't need to ever log in. "Normal" users are just that...regular users that are set up to use the system.

Again, OP...you need to try to look these things up. All of your questions thus far sound like homework, and you need to show some effort to answer them on your own.
 
0 members found this post helpful.
Old 12-05-2011, 11:04 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

I kindly invite other members to avoid posting answers, until the OP demonstrates a good commitment and provides some feedback. Thank you.

Last edited by colucix; 12-05-2011 at 11:07 AM.
 
Old 12-05-2011, 11:05 AM   #11
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Quote:
Originally Posted by TB0ne View Post
Sorry, but these are not correct answers.

/home *USUALLY* is the location where home directories for users are created. .
My intention also the same.
 
0 members found this post helpful.
Old 12-05-2011, 02:24 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,613

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by raju.mopidevi View Post
My intention also the same.
Then you should have stated it as a guideline/intention, rather than a concrete answer.
 
0 members found this post helpful.
Old 12-07-2011, 11:50 PM   #13
shravankumar
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
After getting the Answers I'm not getting clarity What is the difference between /home & /localusr directories?Can anybody explain what is /home & /localusr
 
0 members found this post helpful.
Old 12-08-2011, 12:26 AM   #14
coolsg5636
Member
 
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
Shravan kumar,

You keep asking the same questions repeatedly , even though few Senior Members and Gurus gave you some answers and advised you to find the information on your own.(Because the questions which you ask are very basic questions)

This website is not for providing Linux Training/Courses. If you really want to learn Linux then I strongly suggest you to use Basic Linux books or guides available online.

As a member of LQ , we should adhere to LQ Rules.

Here are some books and guides which can help you learn Basics of Linux Operating System.

http://tldp.org/LDP/intro-linux/html/

http://www.linuxhomenetworking.com/

http://www.linux-tutorial.info/modul...ent&pageid=224
 
Old 12-08-2011, 01:02 AM   #15
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
I think he has been posting questions in right forum - newbie.

I am all for asking questions - no discouraging of any kind - BUT - Misuse of "helping" spirit/willingness to assist - should not be extended beyond whats needed - unless "commitment" and "feedback" are apparent
 
  


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
/etc/shadow file imprise Linux - Newbie 4 05-18-2009 02:28 PM
How to set getpwnam to read a file instead /etc/shadow file ZAMO Linux - General 1 02-02-2009 08:25 AM
Shadow file honey bee Linux - Newbie 4 01-05-2008 03:14 AM
shadow file os2 Linux - Security 3 10-18-2005 03:20 PM
shadow file stevee Linux - Security 1 10-07-2003 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 AM.

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
Open Source Consulting | Domain Registration