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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-16-2004, 04:31 PM
|
#1
|
LQ Newbie
Registered: Jan 2004
Location: India
Distribution: Redhat
Posts: 1
Rep:
|
useradd Problem
Hi,
i am facing problem while creating user in my servers..
when i execute "useradd <username>" command it's giving the following error message...
useradd: unable to open password file
i checked the permissions for both /etc/passwd and /etc/shadow file...
every thing is ok...
here i am placing the permissions of both the files...
-rw-r--r-- 1 root root 2553 Dec 10 09:17 /etc/passwd
-rw------- 1 root root 2498 Jan 13 10:59 /etc/shadow
-rw-r--r-- 1 root root 2438 Dec 9 09:35 /etc/shadow-
when i try to change the permission for /etc/shadow file it's giving the follwing error msg.....
chmod: changing permissions of `/etc/shadow': Operation not permitted
i executed all the above command as "root" user.....
kindly suggest me how to solve this issue.....
Thanks/Regards
Deepak
|
|
|
01-16-2004, 04:46 PM
|
#2
|
Member
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335
Rep:
|
Quote:
-rw-r--r-- 1 root root 2553 Dec 10 09:17 /etc/passwd
-rw------- 1 root root 2498 Jan 13 10:59 /etc/shadow
-rw-r--r-- 1 root root 2438 Dec 9 09:35 /etc/shadow-
|
My files look like this:
Code:
-rw-r--r-- 1 root root 1526 Jan 14 13:56 passwd
-r-------- 1 root root 1098 Jan 14 14:00 shadow
-r-------- 1 root root 1044 Dec 31 16:08 shadow-
I know everything else is optional, but have you tried specifying shell, groups, home or any other parameters? It may give additional output...
|
|
|
01-19-2004, 09:21 AM
|
#3
|
Member
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
|
I don't know if this may be the issue or not but I have found myself doing it so maybe you did to. Make sure when you do things like this, you sign in using "su -" instead of "su". It allows a totally different path and more options. There should be no reason why as root you can't change those files permissions and access. Try that and repost.
|
|
|
All times are GMT -5. The time now is 05:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|