search for: usermod

Displaying 20 results from an estimated 1324 matches for "usermod".

2000 Aug 11
0
[RHSA-2000:053-01] Updated usermode packages.
--------------------------------------------------------------------- Red Hat, Inc. Security Advisory Synopsis: Updated usermode packages. Advisory ID: RHSA-2000:053-01 Issue date: 2000-08-11 Updated on: 2000-08-11 Product: Red Hat Linux Keywords: usermode shutdown Cross references: N/A --------------------------------------------------------------------- 1. Topic: Updated usermode...
2007 May 10
3
Bug or misconfiguration? Trying to add local user in NIS environment
...e: Ignoring cache info: Caching configuration at /var/lib/puppet/localconfig.yaml notice: Starting configuration run err: //global/super_add/User[dduck]/groups: change from dialout,video,super to dialout,dduck,users,video failed: Could not set groups on user[dduck]: Execution of ''/usr/sbin/usermod -G dialout,dduck,users,video super'' returned #<Process::Status: pid=1425,exited(10)>: usermod: `users'' is primary group name. Cannot modify/add NIS group entries. usermod: User not removed from group `dduck''. Cannot modify/add NIS group entries. usermod: User not ad...
2005 Mar 10
2
problem with smbldap-usermod for SOME users
dear readers, As the subject says: I'm having a problem for only some of my users. See below. My system: samba 3.0.11 on sles9 with latest smbldap-tools hostname:~ # smbldap-usermod -A1 user1 hostname:~ # smbldap-usermod -B1 user1 Use of uninitialized value in pattern match (m//) at /usr/local/sbin/smbldap-usermod line 355, <DATA> line 283. hostname:~ # smbldap-usermod -B1 user2 hostname:~ # Any ideas what could be the problem here? Searched the archive and a similar qu...
2007 Aug 24
1
Group add trouble
...ially as user root (uid=0, gid=0) (pid 30916) [2007/08/25 02:08:33, 1] smbd/service.c:close_cnum(1150) mikeslap (10.194.79.195) closed connection to service profiles [2007/08/25 02:08:33, 1] smbd/service.c:close_cnum(1150) mikeslap (10.194.79.195) closed connection to service profiles /usr/sbin/usermod: invalid option -- a Try `usermod --help' or `usermod --usage' for more information. [2007/08/25 02:09:09, 0] groupdb/mapping.c:smb_add_user_group(978) smb_add_user_group: Running the command `/usr/sbin/usermod -a -G 'users' 'root'' gave 2 /usr/sbin/usermod: invalid op...
2011 Aug 09
1
HP-UX user resource and shared homedir
...n HP-UX we want some users to have the same homedir. Homedir is managed by puppet as file resource. We now want to move the users to another primary group. useradd.sam complains: err: /User[XXX]/gid: change from 3 to 0 failed: Could not set gid on user[XXX]: Execution of ''/usr/sam/lbin/usermod.sam -F -g 0 XXX'' returned 45: Cannot modify user ''XXX'': Home directory ''/.root_home'' is shared This error also shows up when running the mentioned command on command line. The following usermod.sam command is working on command line: ''/usr/sam/...
2016 Nov 17
2
Unable to add AD users to local groups
On 11/16/2016 04:34 PM, Rowland Penny via samba wrote: > Provided that the group urbanweb exists in /etc/group and your users > are shown by getent passwd or id, then you could try the unix tools > i.e. usermod -G urbanweb ADDOMAIN\\1001362 > > Rowland Greetings, Thank you for the response. the matching UNIX group exists. Been using local groups on Samba for years. # getent passwd "ADDOMAIN\\1001362" 1001362:*:2091888:2000513:Robert M Martel:/home/1001362:/usr/bin/bash wbinfo returns...
2007 Apr 21
1
usermod and useradd errors
I am not sure if anyone else has run into this, but i did today when setting upo a samba server. http://lists.gobolinux.org/pipermail/gobolinux-users/2007-February/004413.html In an nutshell you get an error like: "usermod: invalid numeric argument", or the user groups are never assigned, etc. So I have been managing manually. I get the exact same symptoms, etc (but doing things like appending groups, etc). Apparently it can be fixed by downgrading Shadow package to 4.0.17, however with a quick little "rpm...
2007 May 29
12
Group management
Hi, I am sure this subject has come up before. I did not find anything on Google that comes close to what I am trying to do. I would like to manage different groups on multiple nodes using puppet and do not know of a good way to do it. Does anyone have an idea of how I can accomplish this? Any help will be appreciated. Thanks, Mouncef _______________________________________________
2009 Apr 27
6
File access denied when printing from a Delphi application
Hello, everybody! I'm getting the following error when I'm trying to print from a Delphi application: File access denied. This printer routine in my application is a routine to print text. So it prints to a file in LPT1 . The source code is more or less like this: Code: procedure Print; var File: TextFile; begin AssignFile(File, 'LPT1'); Rewrite(File); try
2010 Jan 28
1
/usr/sbin/usermod -p doesn't update MAX_DAYS - workaround?
...e group of Linux servers that I inherited from a previous administrator. Unfortunately there is no single sign-on configured so each server has it's own local accounts with local authentication. Normally I use ssh keys and a handy shell script to change passwords on all these machines with the usermod -p command. We are able to update the password on on one server and push the encrypted password out to all the others. If, however, we turn on password aging with "chage -M 90 username" then try to update passwords with usermod, the aging info for the account is not updated even though...
2004 Nov 24
1
smbldap-usermod over ssh
Hi all, I'm writing a script, and one thing it does is the following: ssh someuser@somehost /usr/local/sbin/smbldap-usermod -a -P some.samba.user If I left off the -P all works fine. With the -P it does not prompt me for the password on my screen, but it seems to have done it on the host I am ssh'ing to. I straced the command on that host and I am stuck at a read() call. However, I can't see the password...
2009 May 07
4
problem with conditionals
I''m new to puppet. I''m trying to use some real case examples to better understand how Puppet works. Here''s my case: exec { "usermod -d /home/hadoop -s /bin/bash hadoop": unless => "test `grep ^hadoop /etc/passwd | awk -F: ''{print $6}''` == ''/home/hadoop''" } The idea is the usermod would only get executed if the user''s home directory was something other t...
2014 Jan 03
1
SSSD and usermod
Hi! How to get usermod working with SSSD/389DS ? We have SSSD set up on our server and it uses 389DS. SSSD was enabled with the following command: authconfig --enablesssd --enablesssdauth --ldapbasedn=dc=example,dc=com --enableshadow --enablemkhomedir --enablelocauthorize --update Running for example "usermod -L...
2012 Jun 04
1
Need help resolving bad Puppet module entries for STIG
...he default shell /bin/false, /usr/bin/false, /sbin/false, ## /sbin/nologin, or /dev/null, and by locking the password. exec { "/bin/bash -c ''for i in `awk -F: ''\$3 < 500 && \$1 != \"root\" { print \$1 }'' /etc/passwd`; do /usr/bin/usermod -L -s /dev/null \$i; done''": } } Error reported: Jun 1 12:40:58 rhel-stig-ap puppet-agent[2489]: (/Stage[main]/Gen002640/Ex ec[/bin/bash -c ''for i in `awk -F: ''$3 < 500 && $1 != "root" { print $1 }'' /etc/passwd`; do /usr/bin/usermo...
2005 Apr 06
3
givenname and email address with smbldap-tools
...ealx howto and as such I am using the smbldap-tools. However, I would like to add the givenname and email address fields for all users. What is the best way to do this? I would prefer continuing to use the smbldap-tools, but I cannot seem to find a good way to do this. When I try to: $ smbldap-usermod -M testuser@testdomain.net testuser I get: failed to modify entry: mailLocalAddress: attribute type undefined at /usr/local/sbin/smbldap-usermod line 470, <DATA> line 283. And what fields are normally used for the full name within this smbldap-tools scope? How do people cope with additional...
2009 Sep 24
2
Adding a AD Group to a Unix user account
Hi Guys, First of all I can do the following: "usermod -g GID bobby" and it adds the group to the user account fine (GID being the actual number value not the name). but if i don't use -g it fails to work, I want to ADD the group "Domain Users" to "bobbys" account, so I tried: "usermod -a -G GID bobby" but it...
2016 Sep 29
5
Failed to find sambaDomain object to get sambaAlgorithmicRidBase
Hello group, When I try to add sambaSAMAccount object class to a user with smbldap-usermod, I have the following error: smbldap-usermod -a bernard.fay Failed to find sambaDomain object to get sambaAlgorithmicRidBase at /usr/share/perl5/vendor_perl/smbldap_tools.pm line 1235. Someone have an idea of the problem? Thanks, Bernard
2017 Feb 21
2
usermod under CentOS
...assword, or just use their default dummies. I chose the dummies -- and realized in the night that I've never changed a username before. I think, repeat think, I could hack it with mv and chown, but I had enough sense to try a few manuals and duckduckgo searches. Those eventually led me to usermod, and I took a look at 'man usermod'. It seems to be fairly powerful -- and therefore dangerous as well as apposite. So I ask here: are there caveats, gotchas, and/or other entities of their ilk that I need be wary of? -- Beartooth Staffwright, Not Quite Clueless Power User Remember I...
2010 Jul 06
0
smbldap-usermod timeout for Terminal Server
Hello, When I modify a user account adding him to a customized group, there is a delay which can be up to 2 hours to take effect. - the user account is already created with smbldap-useradd. - the user account is modified later (with smbldap-usermod), adding him to a group which has the right "allow log on through terminal services properties" on the local security policy The samba server act as a PDC. I've tried a lot of things to bypass the delay : - restart of samba - restart of openldap - gpupdate /force on windows server -...
2008 Oct 16
1
puppet not creating users?
...fig: class bb::new { # some includes... include "admins" User <| tag==admin or tag==tech |> } node "bb" { inlucde "bb::new" } Problem is - when I run puppetd, I get (output with --debug): debug: User[graf0](provider=useradd): Executing ''/usr/sbin/usermod -u 1500 graf0'' err: //Node[bb.0000.i.dragonfly.pl]/bb::new/admins/User[graf0]/uid: change from 3000 to 1500 failed: Could not set uid on user[graf0]: Execution of ''/usr/sbin/usermod -u 1500 graf0'' returned 6: usermod: graf0 not found in /etc/passwd debug: User[gr...