Bluehost.com Web Hosting $6.95

WG: [Samba] Create user home directory or user-own folder onsambaserver on first login to samba

This is a discussion on WG: [Samba] Create user home directory or user-own folder onsambaserver on first login to samba within the Samba forums, part of the Networking and Network Related category; Hello In the [homes] section at first with root preexec=/path/to/script Ex: [homes] Root preexec=/scripts/./firstlogon In ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-21-2008
Daniel Müller
 
Posts: n/a
Default WG: [Samba] Create user home directory or user-own folder onsambaserver on first login to samba

Hello

In the [homes] section at first with root preexec=/path/to/script
Ex:
[homes]
Root preexec=/scripts/./firstlogon

In the firstlogon this could be:
#!/bin/bash
#probe if $1=user exist and his home share
If test -d /users/$1
Then
#write only to log file
Echo "$1 User and Share exist" >> /somewhere/logfile
#if not exist make it
Else
Mkdir /users/$1
Chmod -R 700 /users/S1
Chown -R $1:"Domain Users" /users/$1
Echo "made /users/$1" >> /somewhere/logfile
Fi

This is my way suite it to your needs

Greetings
Daniel


-----Ursprüngliche Nachricht-----
Von: samba-bounces+mueller=tropenklinik.de@lists.samba.org
[mailto:samba-bounces+mueller=tropenklinik.de@lists.samba.org] Im
Auftrag von Ðóñàêîâ Äåíèñ
Gesendet: Dienstag, 21. Oktober 2008 12:08
An: samba@lists.samba.org
Betreff: [Samba] Create user home directory or user-own folder on
sambaserver on first login to samba


Hello,
I'd like to create user home directory or user-own folder on samba
server on first login to samba without using PAM, so how could I do
this?

Thank you,
Denis
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0