07-05-2009
if there are only a small number of users you should probably just recreate them by hand. For a large number of users I would write a shell script to do the user account creation.
You certainly can use cpio to copy over the data but don't expect any executables or libraries to work.
6 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello all,
I am migrating perl code from 32-bit Solaris 2.5 to 64-bit Solaris 9. On which part of code should I concentrate? And please suggest if there is any checklist for the same.
Thanks in advance,
Devesh. (3 Replies)
Discussion started by: devesh
3 Replies
2. Programming
Hello,
If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit.
How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
3. Gentoo
hi all,
i have a 64 bit linux machine.
$uname -a
Linux SVRDELLD30 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64 x86_64 x86_64 GNU/Linux
here by default gcc creates 64 bit executable. but for some reason i want to create 32bit executable.
first i want to create 32 bit object... (3 Replies)
Discussion started by: uttamhoode
3 Replies
4. Red Hat
Hi all,
I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html
I've done... (0 Replies)
Discussion started by: philrau
0 Replies
5. Shell Programming and Scripting
Hi,
Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result.
perl interpreter info,
perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies
6. Windows & DOS: Issues & Discussions
Hello everyone.
I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies
LEARN ABOUT DEBIAN
pam_mkhomedir
PAM_MKHOMEDIR(8) Linux-PAM Manual PAM_MKHOMEDIR(8)
NAME
pam_mkhomedir - PAM module to create users home directory
SYNOPSIS
pam_mkhomedir.so [silent] [umask=mode] [skel=skeldir]
DESCRIPTION
The pam_mkhomedir PAM module will create a users home directory if it does not exist when the session begins. This allows users to be
present in central database (such as NIS, kerberos or LDAP) without using a distributed file system or pre-creating a large number of
directories. The skeleton directory (usually /etc/skel/) is used to copy default files and also sets a umask for the creation.
The new users home directory will not be removed after logout of the user.
OPTIONS
silent
Don't print informative messages.
umask=mask
The user file-creation mask is set to mask. The default value of mask is 0022.
skel=/path/to/skel/directory
Indicate an alternative skel directory to override the default /etc/skel.
MODULE TYPES PROVIDED
Only the session module type is provided.
RETURN VALUES
PAM_BUF_ERR
Memory buffer error.
PAM_CRED_INSUFFICIENT
Insufficient credentials to access authentication data.
PAM_PERM_DENIED
Not enough permissions to create the new directory or read the skel directory.
PAM_USER_UNKNOWN
User not known to the underlying authentication module.
PAM_SUCCESS
Environment variables were set.
FILES
/etc/skel
Default skel directory
EXAMPLES
A sample /etc/pam.d/login file:
auth requisite pam_securetty.so
auth sufficient pam_ldap.so
auth required pam_unix.so
auth required pam_nologin.so
account sufficient pam_ldap.so
account required pam_unix.so
password required pam_unix.so
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
session required pam_unix.so
session optional pam_lastlog.so
session optional pam_mail.so standard
SEE ALSO
pam.d(5), pam(7).
AUTHOR
pam_mkhomedir was written by Jason Gunthorpe <jgg@debian.org>.
Linux-PAM Manual 06/04/2011 PAM_MKHOMEDIR(8)