There is also a chapter for /etc. I tried running the adduser command from the root session and received the same error message I listed above. share|improve this answer answered Jan 28 '12 at 22:12 Robin Green 711621 I've been reading many threads with my problem and that was actually the solution. Vent kitchen hood vent to roof turbine vent?
root root system_u:object_r:shadow_t:s0 /etc/shadow-rwxr-x---. Why are you trying to do this? –MadHatter Mar 25 '13 at 9:02 Agreed - this is a very bad idea. –Jenny D Mar 25 '13 at 9:03 And ls -l /etc/shadow shows : -rw-r--r-- for shadow lsattr /etc/shadow shows : ---------- for shadow Thanks in advance Adv Reply June 1st, 2008 #2 p_quarles View Profile View Forum root root system_u:object_r:etc_t:s0 /etc/group -rw-r--r--.
Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. –Dave M Apr 15 '15 at 11:46 add a comment| up vote I did some web searching on "Recover Mode Read Only" and came across the following post: http://www.linuxquestions.org/questions/linux-general-1/cannot-edit-fstab-in-recovery-mode-filesystem-is-read-only-540195/. Kind regards repo View Public Profile View LQ Blog View Review Entries View HCL Entries Visit repo's homepage! Existing Lock File Etc Passwd Lock Without A Pid Thanks again for your help. –BubbaJ Nov 17 '11 at 15:34 add a comment| up vote 0 down vote You should really delete that lock file using the recovery console, although
If /etc/shadow is world-readable then it's trivial for any user on the system to run a password cracker on your passwords." Well I have chnaged it (/etc/shadow) to 640 -rw-r----- And The time now is 07:47 PM. share|improve this answer edited Apr 15 '15 at 17:19 KronoS 18.1k3492146 answered Apr 15 '15 at 9:06 LI JIM 112 This is a thank you comment to a previous Thanks again. –BubbaJ Nov 17 '11 at 15:37 add a comment| Not the answer you're looking for?
How to stop NPCs from picking up dropped items Using the eval command twice Was it legal to rant against trick or treating via loudspeaker during halloween? Groupadd Cannot Open /etc/group Browse other questions tagged linux rhel or ask your own question. sudo gives you the permission to lock it. In my attempt to try to add myself to the user groups for the other users, I somehow deleted myself from the admin groups.
The users who voted to close gave this specific reason:"Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was check my blog Make space on my file system fixed the problem pcardout View Public Profile View LQ Blog View Review Entries View HCL Entries Visit pcardout's homepage! It looks like I successfully added my userid to the group associated with my wife's account. What are you trying to do? Useradd Cannot Open Etc Passwd Ubuntu
I then tried adding a new user using adduser, thinking I would try to create a new userid and make the new userid part of the admin group. The problem is when I am issuing "useradd" command to create a user the command replies an error and I have got a snapshot of that hope someone could give solution Actual results: $ useradd -u 500 -g wbaker wbaker useradd: cannot open /etc/passwd Expected results: a user record for wbaker Additional info: I am trying to accomplish: groupadd -g 500 wbaker this content Should I report it?
Change to root user by issuing the command su - or if you have/use sudo sudo
share|improve this answer answered Nov 16 '11 at 21:23 psusi 26.9k13675 In my original post above, I mentioned that I already tried this using command "usermod -a -G admin
I get the same error using the adduser command. [email protected]:/home$ sudo userdel eric [email protected]:/home$ share|improve this answer answered Sep 17 '14 at 20:45 Eric Leschinski 2,77742642 add a comment| Your Answer draft saved draft discarded Sign up or log The post talks about the Recovery Mode being in read-only mode by default. Groupadd: Failure While Writing Changes To /etc/group Here is a link to the KB article that showed how to stop the agent: Mcafee HIPs agent linux rhel share|improve this question edited Aug 14 '15 at 18:54 asked Aug
Results 1 to 4 of 4 Thread: useradd: unable to open password file Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Whatever you're trying to test: find a better way. GO OUT AND VOTE Teenage daughter refusing to go to school Isn't AES-NI useless because now the key length need to be longer? have a peek at these guys root root system_u:object_r:etc_t:s0 /etc/passwd strace shows $ strace useradd -u 500 -g wbaker wbaker >& /tmp/o.strace.out $ less /tmp/o.strace.out ...etc...
Related 14Cannot lock '/etc/group' in recovery mode10When Ubuntu asks for an admin user's password, how does it decide which administrative user to ask for?2Changing groups as nonadmin14I deleted the “/etc/passwd” file Join Date Sep 2006 Posts 2 Hi Tommo, I had stumbled upon this solution while doing Google for my problem. Anyway, I'm just happy to now have at least one user on the computer with Administrator access. This is the culprit (from man 2 open): O_NOFOLLOW If pathname is a symbolic link, then the open fails.
but no idea what. –laurent Nov 17 '11 at 14:10 I am unable to execute the sudo command from the command line since my userid is no longer a The only similar file that exists in the /etc directory is a zero byte file .pwd.lock. Use the FAQ Luke Top varusrntoolong Posts: 40 Joined: 2016/03/08 21:21:44 Re: userdel can't write to /etc/passwd Quote Postby varusrntoolong » 2016/06/05 13:38:02 Hey Trevor,it's centos 7 running updated.Linux centos7.local 3.10.0-327.18.2.el7.x86_64 I suppose this all depends on what "security work" in particular you've done on this box.
As to why a link cannot be made, link(2) indicates that the filesystem does not support the creation of hard links, which means you either have a strange filesystem, or a This time I did not receive an error executing the command since the filesystem was mounted as read-write. How do I make an alien technology feel alien? O_RDONLY : O_RDWR) | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW); Do you see O_NOFOLLOW?
I boot from grub with init=/bin/bash. You are currently viewing LQ as a guest. Seriously, don't stick files as critical as that in an unexpected location. The bug report does not mention deleting this file. –BubbaJ Nov 17 '11 at 4:15 su requires the password on the root account, which is disabled by default in