Displaying 20 results from an estimated 2859 matches for "useradd".
2009 Nov 19
0
migrating NT4 PDC to samba3. netrpc vampire errors
...DomainPowerUser'' gave 3
Creating unix group: 'SophosDomainAdministrator'
groupadd: 'SophosDomainAdministrator' is not a valid group name
smb_create_group: Running the command `/usr/sbin/groupadd
'SophosDomainAdministrator'' gave 3
Creating account: Administrator
useradd: invalid user name 'Administrator'
fetch_account: Running the command `/usr/sbin/useradd -m 'Administrator''
gave 3
Could not create posix account info for 'Administrator'
Creating account: Guest
useradd: invalid user name 'Guest'
fetch_account: Running the comma...
2001 Oct 22
7
Add User Script
I am trying to read in a list of users from a file and automatically create
users from that. Here is what I thought would work:
#!/bin/sh
cat /mnt/PDC1-UsrSync/user.diff | while read Foo; do useradd $Foo; done
Contents of the user.diff file:
dccut
dclam
dcprep
dcshp
But here is what I get when I run the script:
> sh test.sh useradd: invalid user name `dccut ' useradd: invalid user name
`dclam ' useradd: invalid user name `dcprep ' useradd: invalid user name
`dcshp '
A...
2015 Jan 25
2
C5 & C6 : useradd
useradd --help
-d, --home-dir HOME_DIR home directory for the new user account
-M, do not create user's home directory
yet
useradd -M -s /sbin/nologin FRED
produces in /etc/passwd
fred:x:504:504::/home/fred:/sbin/nologin
Trying again with
useradd -d /dev/null -s /sbin/no...
2007 Oct 16
4
Useradd & NIS issue if the user exist
...rocess to have a coexisting user which belongs in NIS & as well as
/etc/passwd.
We have NIS clients (yp running) on all host servers.
So when running puppet is fails to add or modify user, bcos the user
already exists in NIS.
Eg: A user pcruise is an existing NIS user.
When using useradd or puppet(which in turn does useradd/usermod) fails
bcos it finds already a user in NIS.
So is there any way I can have a user belong to NIS & /etc/passwd.
NOTE: I know its more of a UNIX question rather then puppet.
Thanks for any info.
--
Deepak
________________________...
2008 Nov 25
2
adduser vs. useradd
...bly out of an old
habit, since I've been a long-time Slackware user before. But now I
wanted to dig a bit deeper, and some details puzzle me.
Whereas on Slackware, 'adduser' is an interactive shell script to create
a user so that basically you don't have to memorize all the 'useradd'
switches, CentOS' 'adduser' is a mere symbolic link to 'useradd'.
But when I add a new user (# adduser newuser), I don't use any switches,
say to specify the shell, the home directory, the password expiration
delay, etcetera. I understand that it is Red Hat (CentOS)...
2008 Jun 06
8
useradd provider not working?
I have this config:
# BL00070 - Disable NFS
service {["nfs","nfslock","netfs","portmap"]:
ensure => stopped,
enable => false,
}
user {"rpc": ensure => absent, provider => "useradd" }
user {"rpcuser": ensure => absent, provider => "useradd" }
file {"/etc/imports": ensure => absent }
file {"/etc/auto.home": ensure => absent }
file {"/etc/auto.master": ensure => absent }
file {"/etc/a...
2005 Feb 21
4
how to change default shell when using adduser/useradd
Hi,
when I use useradd of adduser in CentOS 3 or 4, the default shell a user
gets /bin/bash.
I want this to be changed to /bin/false for security reasons...
How can I accomplish this?
Thanks in advance for any help.
--
Michiel
2006 Feb 21
0
nobody run "add user script = /usr/sbin/useradd ....."
...an see both domains in the login screen domain combo box.
I can logon to PDC2 , but not to PDC1, since the PDC2's /etc/passwd lacks the username from PDC1 i am trying to log in with. To correct this i edit smb.conf adding this line:
add user script = /usr/sbin/useradd %u -g users -s /bin/false -d /dev/null
After another unsuccessful login to PDC1 (with username ivan for example) in the PDC2's log (/var/log/samba/winxp.log) can be seen the following lines:
useradd: unable to lock password file
useradd ....gave 1...
2011 Feb 03
3
User Details
I have some questions on how I can perform the following actions from
the terminal in CentOS 5.5 final. My Google searches aren't helping
and I keep seeing references to the command 'useradd' but this isn't
present on my box;
-How to add a new user?
$ useradd
-bash: useradd: command not found
(This is the same for my normal user and when logged in as root)
-How to set/change an existing users home folder path
-How to list all users
-How to list all groups
Sorry if this seems...
2009 May 15
4
Timing in a script
Hi, all --
I am trying to write a script in which I can add users and their samba passwords easily and quickly.? It looks something like:
?? useradd -c "User Name" -g groupname -p unixpassword accountname
?? echo -e "smbpassword\nsmbpassword\n" | pdbedit -a -t -u accountname
If
I type the lines from the keyboard, it works fine.? However, when I try
to execute the script, the pdbedit on the second line reports that
there...
2004 Jul 23
1
NT domain migration to LDAP/SAMBA
...I've set up an OpenLDAP server, and Samba 3, configured it as a BDC, and
tried running "net rpc vampire". This all works, and Samba does the
appropriate stuff to try and populate the LDAP database. The scripts
I've got configured are:-
add user script = /usr/local/sbin/smbldap-useradd -a -m '%u'
delete user script = /usr/local/sbin/smbldap-userdel '%u'
add group script = /usr/local/sbin/smbldap-groupadd -p '%g'
delete group script = /usr/local/sbin/smbldap-groupdel '%g'
add user to group script = /usr/local/sbin/smbldap-groupmod -m '%u' ...
2006 Jul 18
3
Unable to add computer to domain
...5, I
followed the instruction of "samba3-ldap-howto", now I am unable to add
computer to domain..
Tried to check /var/log/samba and found the following:
[2006/07/18 14:55:44, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2404)
_samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
"nb02$"'
gave 9
[2006/07/18 14:56:01, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2404)
_samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
"nb02$"'
gave 9
[2006/07/18 14:56:33, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2404)
_samr_create_us...
2005 Aug 26
3
On the fly Machine accounts
I have been trying for 2 months to get my samba server to add machine
accounts 'on the fly"
I have added both of these to my smb.conf
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
add machine script = /usr/sbin/useradd -d /dev/null -g 102 -s /bin/false
Neither of these seems to do anything.
I have around 250 computers to add, so adding the machine accounts
manuelly isn't going to happen.
I've read the documentation that say...
2005 Mar 11
2
smbldap-useradd -w problem
...alue
[2005/03/09 13:15:26, 0] passdb/pdb_ldap.c:ldapsam_update_sam_account(1694)
ldapsam_update_sam_account: failed to modify user with uid = nt4box$,
error: m
odify/delete: sambaPrimaryGroupSID: no such value (Success)
In the smb.conf file I have:
add machine script = /opt/IDEALX/sbin/smbldap-useradd -w '%m'
When I run ./smbldap-useradd -w 'test' by hand it creates an entry without
objectClass: sambaSamAccount:
# test$, People, economists-inc.com
dn: uid=test$,ou=People,dc=economists-inc,dc=com
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
cn: test$
sn:...
2007 Sep 26
2
smbldap-useradd problem
Dear list,
Arghl! (I'm sure you know the feeling).
I'm still hooked on Samba by example, and trying to add users to my ldap tree.
$ smbldap-useradd -m -a ldaptest2
Can't call method "get_value" on an undefined value at
/usr/sbin/smbldap-useradd line 197
The documentation of the smbldap scripts mentions this sort of error
(albeit with a different line number). Two possible problems are
proposed:
1. the default group defined in sm...
2006 Dec 01
1
Adding users with usrmgr/smbldap-useradd
...set up a new PDC using LDAP, etc.
Adding/deleting/modifying users in LDAP works fine using phpldapadmin.
These users also work just fine logging in/out.
I am trying to get the usrmgr tool to also work, so im working on the
scripts on the server.
I am getting this error however when I use smbldap-useradd:
Can't call method "get_value" on an undefined value at ./smbldap-useradd
line 197, <DATA> line 283.
The line in the file contains the following code:
$userGroupSID = $group_entry->get_value('sambaSID');
Not being a perl expert, not really sure what it wants.
In sm...
2004 Jan 12
1
problem with smbldap-useradd.pl
hi.
i?m having big trouble with smbldap-useradd.pl
when i try
#cd /usr/local/bin
#./smbldap-useradd -a test
i got this message:
Can't call method "get_value" on an undefined value at ./smbldap-useradd.pl line 152, <DATA> line 283.
help please!!!??
[]?s
Bruno Ricci
2004 Oct 25
2
Fail in add user script
Dear all,
I have a problem with adduser script in smb.conf.
I traing to log in WinXP as a user from trusted domain. But it writes
me alwais this fail:
useradd: unable to lock password file
[2004/10/21 14:00:53, 3] auth/auth_util.c:smb_create_user(53)
smb_create_user: Running the command `/usr/sbin/useradd -m veronika'
gave 1
My add user script in smb.conf:
add user script = /usr/sbin/useradd -m %u
Please can you help me??
Best regards, Sopik Br...
2009 Oct 22
2
useradd: invalid numeric argument 'someuser'
...m I making a mistake or is this a bug? I''ve experienced this issue
using 0.24.8 from EPEL also.
Thu Oct 22 13:59:43 -0700 2009 //user::virtual-users_groups/User
[someuser]/ensure (err): change from absent to present failed: Could
not create user someuser: Execution of ''/usr/sbin/useradd -G
sshusers,someuser -d /home/someuser -u 4061 -s /bin/bash -c Some User -
p $1$VezlG/$SSk0bJto9WNW4NRatiZJP1 -m someuser'' returned 3: useradd:
invalid numeric argument ''someuser''
@user { "someuser":
ensure => "present",
uid =&g...
2005 Dec 12
1
Winbind & adding users... is `useradd` being called? %u parameter?
...baby imapd: error: No such file or directory
Dec 12 11:33:37 baby imapd: LOGIN FAILED, user=networkned,
ip=[127.0.0.1]
Dec 12 11:33:37 baby imapd: authentication error: No such file or
directory
Initially in smb.conf I had simply uncommented the line which says:
add user script = /usr/sbin/useradd -s /bin/false '%u'
but of course(as pointed out on the IRC channel) `useradd requires the
-m flag in order to create a home directory for the user, so I set it
like this:
add user script = /usr/sbin/useradd -m -s /bin/false '%u'
but that gives me the same error.
The log shows...