Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: marcus75 on March 28, 2006, 10:19:33 AM

Title: Change logon driver Z:\
Post by: marcus75 on March 28, 2006, 10:19:33 AM
Hi everyone

I'm a newbie, I have installed SME 7 as a domain controller and I  do my login with winxp ;  I need to change the home driver mapped from Z: to G:

Can you help me?

thanks
Title: Change logon driver Z:\
Post by: mdo on March 28, 2006, 10:27:56 AM
Try "net use H: /home" at a command prompt.

If it does what you want, you can add it to your netlogon script.
Michael
Title: Change logon driver Z:\
Post by: marcus75 on March 28, 2006, 10:42:51 AM
If  it's possible,  I 'd like to change the default driver Z: directly from SME server because I have more than  one client.

I've  searched  in smb.conf,  but I didn’t  find  the solution .
Title: Change logon driver Z:\
Post by: stefan24 on March 28, 2006, 12:09:36 PM
Look into /home/e-smith/files/samba/netlogon/netlogon.bat
Title: Change logon driver Z:\
Post by: marcus75 on March 28, 2006, 12:50:58 PM
Stefan I don 't undestand it , because in my netlogon.bat there are only lines of comment

 

/home/e-smith/files/samba/netlogon/netlogon.bat

 

REM To set the time when clients logon to the domain:

REM net time \\servername /set /yes

REM

REM To map a home directory to drive h:

REM net use h: /home

 

So I' m searching a solution to change the Z:\ in G:\ without  changing  the netlogon. Is it possible ?
Title: Change logon driver Z:\
Post by: cactus on March 28, 2006, 12:53:58 PM
Simply modify your netlogon.bat to delete the z: drive
Code: [Select]
net /delete z:

and add the h: drive as home directory:
Code: [Select]
net use h: /home

Although I think it must be possible to specify it somewhere in some configuration file (my guess is somewhere in the samba configuration files).
Title: Change logon driver Z:\
Post by: marcus75 on March 28, 2006, 01:15:25 PM
I'm searching the file in the samba configuration to change Z : in  a different letter like G: or  H: or  similar
Title: Change logon driver Z:\
Post by: cactus on March 28, 2006, 01:26:33 PM
Quote from: "cactus"
Although I think it must be possible to specify it somewhere in some configuration file (my guess is somewhere in the samba configuration files).

Found a better solution! Login to your console and issue the following statements:

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf
pico 11logonDrive


Enter the following line in the file to set h: as the default home drive:
Code: [Select]
logon drive = h:

Press Ctrl-X and answer yes to save it, and enter to confirm the filename.

Apply the new settings to the configuration file
Code: [Select]
expand-template /etc/smb.conf

Restart Samba
Code: [Select]
/etc/rc1.d/K35smb restart

Be sure that no other options for the chosen drive are set in the netlogon.bat file and try to logon on a Windows PC and see if it worked the way you would like.
Title: Change logon driver Z:\
Post by: cactus on March 28, 2006, 01:38:55 PM
Added a NFR for this option to have it available in Feature Releases of SMEServer: http://bugs.contribs.org/show_bug.cgi?id=1155
Title: Change logon driver Z:\
Post by: marcus75 on March 28, 2006, 02:34:24 PM
Quote from: "cactus"
[Apply the new settings to the configuration file
Code: [Select]
expand-template /etc/smb.conf

Restart Samba
Code: [Select]
/etc/rc1.d/K35smb restart

unfotunally there are a problem in the first step because /etc/smb.conf don't exist.
I can't restart samba   :hammer:   I restart the server
Title: Change logon driver Z:\
Post by: cactus on March 28, 2006, 04:39:40 PM
Quote from: "marcus75"
unfotunally there are a problem in the first step because /etc/smb.conf don't exist.
I can't restart samba   :hammer:   I restart the server


Strange! I assume you are running SMEServer 7.0. Is that correct?

What does this command yield?
Code: [Select]
whereis smb.conf
Is the samba service enabled? You can verify that with the following commands:
Code: [Select]
db configuration getprop smb status
Code: [Select]
db configuration getprop smbd status
Is the samba deamon running?
Code: [Select]
ps x | grep smbd
Title: Change logon driver Z:\
Post by: marcus75 on March 28, 2006, 04:54:07 PM
Quote from: "cactus"

Strange! I assume you are running SMEServer 7.0. Is that correct?

What does this command yield?
Code: [Select]
whereis smb.conf


I use SMEServer 7.0 rc1

My smb.conf is in /etc/samba/smb.conf
Title: Change logon driver Z:\
Post by: cactus on March 28, 2006, 05:03:44 PM
Quote from: "marcus75"
Quote from: "cactus"

Strange! I assume you are running SMEServer 7.0. Is that correct?

What does this command yield?
Code: [Select]
whereis smb.conf


I use SMEServer 7.0 rc1

My smb.conf is in /etc/samba/smb.conf


Strange I run 7.0rc1 as well (db configuration getprop sysconfig ReleaseVersion returns 7.0rc1) and my smb.conf is found on two locations (/etc/smb.conf and /etc/samba/smb.conf)

Then it can be that you will have to replace every occurence of 'etc/smb.conf' with '/etc/samba/smb.conf' to make it work, perhaps also the template-custom directory.
Title: Change logon driver Z:\
Post by: byte on March 28, 2006, 05:15:43 PM
Quote
Strange I run 7.0rc1 as well (db configuration getprop sysconfig ReleaseVersion returns 7.0rc1) and my smb.conf is found on two locations (/etc/smb.conf and /etc/samba/smb.conf)


IIRC - The /etc/smb.conf was symlinked to /etc/samba/smb.conf and Since I cant rember which version they removed the symlinked (you can check bug tracker) So that's why if you install version sme 7.0rc1 you will only have one.