Home directory not being created

1

On a vagrant box precise64 (ubuntu 12.04)

While creating a user resource with Chef, the home directory is not created:

My recipe:

user "myuser" do supports :manage_home => true shell "/bin/bash" home "/home/myuser" comment "Created by Chef" password "myencryptedpassword" system true provider Chef::Provider::User::Useradd action :create end

When I authenticate:

$ su - myuser Password: No directory, logging in with HOME=/

Update - The workaround for precise64 (Ubuntu 12.04 64bit)

directory "/home/myuser" do owner "myuser" group "myuser" mode 00755 action :create end

While system users usually don't have a home dir, chef will create the home dir even for system users if you specify home. I've tried it, and cannot reproduce the issue.

What is going on is a little bit hidden in the documentation. The chef documentations says:

system | Use to create a system user. This attribute may be used with useradd as the provider to...

0 0
2

While selecting the home folder or network drive for an active directory user you may get this error message. “The home folder could not be created because the network name cannot be found”

Reasons of this Error:

Normally this error is because of two reasons:

The folder that you set for home folder is not shared or you don’t assign the full permission to users on that folder. You may be typing the wrong server name in path field.

So here are two solutions or fixes for this issue.

First check the folder you selected for Home Folder should be shared, in case of windows server 2000 or 2003 the home folder should be part of NTSF drive. For folder sharing right click on folder and then click on properties. Click on advance sharing from sharing tab.

Now click on “share this folder” checkbox and mark this checkbox as checked.

And now click on permissions and assign the full permissions to everyone and click on apply to save...

0 0
3

Hi,

I have following user definition:

user { "${hadoop::hdfs_user}": ensure => present, managehome => true, home => "/home/${hadoop::hdfs_user}", gid => "${hadoop::hadoop_group}", shell => '/bin/bash', password => 'xxx', comment =>'hdfs user', require => Group["${hadoop::hadoop_group}"], }

But the home directory is not created after puppet run. This user already exist bacause some rpm installation already created that. When I check my manifest with puppet resource command:

user { 'hdfs': ensure => 'present', comment => 'hdfs user', gid => '502', groups => ['hadoop'], home => '/home/hdfs', password => 'xxx', password_max_age => '-1', password_min_age => '-1', shell => '/bin/bash', uid => '485', }

However home directory is not created. Any hints? Using CentOS...

0 0
4

First, here is my setup:

Installed CentOS 7 on a physical computer, went with default settings, minimal install.

Added packages needed to join an Active Directory domain (realmd sssd adcli samba-common ntp oddjob-mkhomedir)

Joined AD (running on Windows 2008 R2), successfully using realm command

Tested login with domain user through ssh and console and it works, the user's home folder is created at first login in /home/domain/username

Installed samba

Created a very simple config for samba:

[global]

workgroup = mydomain

server string = Samba Server Version %v

security = ads

; encrypt passwords = yes

passdb backend = tdbsam

realm = mydomain.ld

# Not interested in printers
load printers = no
cups options = raw
printcap name = /dev/null

# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size =...

0 0
5
RE: LDAP not creating home directories [Date Prev][Date Next] [Thread Prev][Thread Next] [Thread Index] [Date Index] [Author Index] From: "Bliss, Aaron" To: , "General Red Hat Linux discussion list" Cc: Subject: RE: LDAP not creating home directories Date: Sun, 22 Jan 2006 23:12:55 -0500 I'm trying to get home directories to be created with clients that are authenticating against my ldap server, however for some reason adding session required pam_mkhomedir.so skel=/etc/skel/ umask=0077 to /etc/pam.d/sshd doesn't seem to do the trick on my redhat 4 boxes; this actually works great on my centos 4.2 and redhat 3 boxes. Any ideas? Thanks very much. Aaron -----Original Message----- From: Ryan Golhar [mailto:golharam umdnj edu] Sent: Sunday, October 16, 2005 10:11 AM To: 'General Red Hat Linux discussion list' Subject: RE: LDAP not creating home directories LDAP won't create the home directories for you. However, the home directory can be automatically created when a user first logs...
0 0
6

Hi all,

I’m not sure if this is the right place to ask, but it’s worth a shot.

I have installed CentOS 6.5 on one of our servers, and have just installed SolusVM.

I have also set up LVM, with a PV on /dev/sda4 (which is GPT formatted, and
3.12TB is size).

The problem I’m having is that when I create the VG, it will not show up under /dev/, which it’s supposed to according to Red Hat guides on LVM.

On a CentOS 5.9 server, with an almost identical set up, the VG showed up under /dev/ correctly, so I’m wondering if the VG folder is stored elsewhere in CentOS 6? I have tried the obvious solutions, such as a reboot, vgscan, pvscan, and even partprobe. I have even tried running
‘find’ in search of the VG name, which returned no results.

Any help is much appreciated. :)

Regards,

Kyle Thorne | VentraIP Australia
*Level 3 Technical...

0 0
7

Hi Rob here again. Periodically we’re asked “what is the best way to auto-create home, roaming profile, and folder redirection folders instead of Administrators creating and configuring the NTFS permissions manually?” The techniques in this post requires you to use the environment variable %USERNAME% in the user’s home folder attribute when you create the users account.

We will also make use of the “$” symbol in the share name; which makes the share hidden from anyone who attempts to list the shares on the file server via computer browsing.

Alright let’s get started.

Home directory:

Home folders are created automatically when the user’s account is created and an administrator has enabled the use of home folders. You change the home folders for the user afterwards, but we are all about making the Admin’s life easier.

Create the folder and enable sharing

As you can see we create the share name and added a dollar sign ($) to the...

0 0
8

When I create a new mail user in Virtualmin, the user is created, but I get this error: "Failed to save mailbox : Failed to write to /home/brico/homes/brian/.maildir/ when closing : Bad file descriptor"

When I look in the /homes directory under that domain, I see that the user directory (in this case, brian) has been created, but the .maildir directory has not been created. If I go to that user in the users list, and change the "Send updated account email to:" setting to send to the address for that user, and then click save, it creates all of the necessary directories.

I have tried changing the "Send new account email to:" setting before creating the account with the same result. Is there something I am...

0 0
9

I run into a problem with starting apache httpd server after fresh brew installation on fresh Mac OSX 10.8. Apache cannot be run due to missing log and run directories. Error I get is:

(2)No such file or directory: httpd: could not open error log file /usr/local/homebrew/Cellar/httpd/2.2.22/var/apache2/log/error_log. Unable to open logs

Right after the installation /usr/local/homebrew/Cellar/httpd/2.2.22/var/apache2/ exists. However there are missing both:
/usr/local/homebrew/Cellar/httpd/2.2.22/var/apache2/log
/usr/local/homebrew/Cellar/httpd/2.2.22/var/apache2/run

User I run apache as has clearly privileges to create directories inside apache2 dir, but I guess it is not automaticallhy trying to create them.
If I create them manually apache starts with no problem.

I also thought that these direcories are incorrect, however after brief look over the configure scripts and inputs it seems these values are taken from the environment...

0 0
10

I've setup a RHEL6.5 system with LDAP/AD authentication and other than mapping all LDAP users shell to /sbin/nologin it's pretty bog standard. If the users home directory exists, I can login to rstudio and use it perfectly.

If I su to an LDAP user, their home directory is created. If I try pamtester using the rstudio (copy of login) it works and creates their home directory.

pamtester rstudio 00072996 "open_session"
Creating home directory for 00072996.
pamtester: sucessfully opened a session

And yet even though the login for rstudio is working for authentication, the home directory is not being created. it's very odd.

I've been trying both pam_mkhomedir.so and pam_oddjob_mkhomedir as this is a RHEL6.5 box.. neither option creates the users home directory after a successful login. .
It's not an SELINUX issue as I've set it to permissive for now.

If I run the pamtester as the rstudio-server user, it fails like so:
...

0 0
11
FOR /F "delims=" %%i IN ('dir /b /ad-h /t:c /od') DO SET a=%%i echo Most recent subfolder: %a%

(%i for windows 10)

/b is for bare format /ad-h only directories, but not the hidden ones t:c means to use the creation date for sorting (use t:w for last write date) /od sort oldest first The for /F executes the command and sets a to the directory name, the last one is the newest one.

If you execute this directly on the command line (not in a batch file), use % instead of %%.

This works with the current directory - as @iesou pointed out you'll need to add the directory path after dir if you need to use any other directory path.

Example with specified directory path:

FOR /F "delims=" %%i IN ('dir "c:\Program Files" /b /ad-h /t:c /od') DO SET a=%%i

To prevent going through all subfolders, you may change the sort order to have the most recent first (/o-d) and exit the for loop after the first call:

@echo off FOR /F "delims=" %%i IN ('dir /b /ad-h /t:c /o-d')...
0 0
12
...
0 0
13

New/changed on this site

Young Adults and Naturism Links completely updated, November 19, 2005 Naturist Media Reviews Added June 6, 2005 Where to be Naked in the U. S. Completely revised and updated, May 30, 2005 Personal Naturist Page Links Completely revised and updated, September 10, 2004 Naturist/Nudist Slogans Added May 10, 2003 Naturist SIGs Added May 4, 2003 Nakedness and Nature Major update, February 15, 2003 Favorite Web Sites Added September 16, 2002

Quick index

Favorite Web Sites

Naturist Media Reviews

Naturist/Nudist SIGs

Naturist/Nudist Slogans & Taglines

Nakedness and Nature

NNN: The Nakedness, Nudity, and Naturism List

Books on Nudity and Nakedness

Body Painting

The Weekly Nudesletter

Quotations on Nakedness and Nudity

How to Get Started Being Naked

Young Adults and Naturism

Women's Issues with...

0 0
14

There will be no discrimination in the Byng Public Schools because of race, color, sex, national origin, religion, disability, veteran status, sexual orientation, or age in its programs, services, activities, and employment. The following people have been designated to handle inquiries regarding the nondiscrimination policies: Section 504/Title II of the Americans with Disabilities Act Coordinator - Special Services Director (for questions or complaints based on disability concerning students). Section 504/Title II of the Americans with Disabilities Act (for questions or complaints based on disability concerning employees, patrons and other adults), Title VI of the Civil Rights Act (for questions or complaints based on race, color and national origin), Title IX (for questions or complaints based on sex), and Age Act (for questions or complaints based on age) Coordinator - Personnel Director ----- 500 South New Bethel Blvd. Ada, OK 74820 Telephone:...

0 0