LinuxQuestions.org
Visit Jeremy's Blog.
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 07-29-2016, 09:57 PM   #1
cmoore90638
Member
 
Registered: May 2013
Posts: 30

Rep: Reputation: Disabled
Salix denies me permission to add user


I have just installed latest version of Salix. I have only the root setup when installed.Everytime I have tried it runs through the setup and says permission denied I took a shot of the window so maybe someone can see what I am doing wrong. This happens weather I su or not. any help is appreciated thank you


New account will be created as follows:

---------------------------------------
Login name.......: chuck
UID..............: [ Next available ]
Initial group....: wheel
Additional groups: audio,cdrom,floppy,plugdev,video,power,netdev,lp,scanner
Home directory...: /home/chuck
Shell............: /bin/bash
Expiry date......: [ Never ]

This is it... if you want to bail out, hit Control-C. Otherwise, press
ENTER to go ahead and make the account.


Creating new account...


useradd: Permission denied.
useradd: cannot lock /etc/passwd; try again later.
- Error running useradd command -- account not created!
(cmd: /usr/sbin/useradd -d /home/chuck -m -g wheel -G audio,cdrom,floppy,plugdev,video,power,netdev,lp,scanner -s /bin/bash chuck)
slackman[~]$
 
Old 07-30-2016, 06:39 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
I have not encountered a problem like this in my Salix.

What do you have--
Code:
ls -l /etc/shadow && ls -l /etc/passwd
What are the group ownership of the files?

You used "useradd". Have you tried?
Code:
root@host--#adduser
Good luck.
 
Old 07-30-2016, 11:26 AM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,164

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
I think something went wrong! You should have had a user created during the installation:
http://guide.salixos.org/223Installi...llationCD.html
It looks to me as you need to start again.
 
Old 07-30-2016, 12:26 PM   #4
cmoore90638
Member
 
Registered: May 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
here is the output for the ls -l. it did create this one which I believe is the root.I am trying to add another user.I apololgize the question was worde badly
slackman[~]$ ls -l
total 4
drwxr-xr-x 2 slackman users 65 Jul 19 17:33 Desktop
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Documents
drwxr-xr-x 4 slackman users 109 Jul 29 21:23 Downloads
drwx------ 7 slackman users 85 Jul 25 21:25 Mail
drwxr-xr-x 12 slackman users 4096 Jul 24 14:25 Music
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Pictures
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Public
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Templates
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Videos
slackman[~]$

the 2nd commands output is
bash: root@host--#adduser: command not found
slackman[~]$ ls -l /etc/shadow && ls -l /etc/password is

-rw-r----- 1 root shadow 589 Jul 19 17:41 /etc/shadow
-rw-r--r-- 1 root root 1050 Jul 19 17:40 /etc/passwd

Last edited by cmoore90638; 07-30-2016 at 12:36 PM. Reason: the first command was wrong
 
Old 07-30-2016, 07:28 PM   #5
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,111

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by cmoore90638 View Post
here is the output for the ls -l. it did create this one which I believe is the root.I am trying to add another user.I apololgize the question was worde badly
slackman[~]$ ls -l
total 4
drwxr-xr-x 2 slackman users 65 Jul 19 17:33 Desktop
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Documents
drwxr-xr-x 4 slackman users 109 Jul 29 21:23 Downloads
drwx------ 7 slackman users 85 Jul 25 21:25 Mail
drwxr-xr-x 12 slackman users 4096 Jul 24 14:25 Music
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Pictures
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Public
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Templates
drwxr-xr-x 2 slackman users 6 Jul 21 00:48 Videos
slackman[~]$

the 2nd commands output is
bash: root@host--#adduser: command not found
slackman[~]$ ls -l /etc/shadow && ls -l /etc/password is

-rw-r----- 1 root shadow 589 Jul 19 17:41 /etc/shadow
-rw-r--r-- 1 root root 1050 Jul 19 17:40 /etc/passwd
The root user account is disabled by default in Salix. The first account you set up
has administrator privileges using the sudo command. You really don't need another account.
Unless you want one. You can also enable the root account.
https://docs.salixos.org/wiki/How_to..._the_root_user
 
1 members found this post helpful.
Old 07-31-2016, 08:37 AM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
Quote:
#adduser: command not found
"adduser" is a slackware help script authored by Dogan and Pat V., it exists in /usr/sbin/ and the same uses the "useradd" of the shadow-utils. You can enter the command adduser either as a $USER or root, but only root can validly create the account.

It seems that, for the sake of simplifying the issue, as DavidMacCann above suggested, if I were in that case I will re-install the system.

Hope that helps. Good luck.

m.m.
 
  


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
Root account denies permission alebec271 Linux - Newbie 4 07-28-2015 05:13 PM
[SOLVED] How to add format permission for user in Debian Wheezy? infoslaw Linux - Security 4 02-16-2012 05:03 PM
samba share denies permission to random files while copying joh42231 Linux - Server 1 03-02-2009 08:29 AM
How do add user permission to ~/.ICEauthority or /tmp/.ICE-unix ?? NightSky Linux - Software 3 03-18-2008 06:56 PM
Add User Permission to Directory anjanesh Linux - Newbie 3 12-29-2007 11:28 AM


All times are GMT -5. The time now is 12:58 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