Koozali.org: home of the SME Server

Change logon driver Z:\

marcus75

Change logon driver Z:\
« 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

Offline mdo

  • *
  • 355
  • +0/-0
Change logon driver Z:\
« Reply #1 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
...

marcus75

Change logon driver Z:\
« Reply #2 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 .

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Change logon driver Z:\
« Reply #3 on: March 28, 2006, 12:09:36 PM »
Look into /home/e-smith/files/samba/netlogon/netlogon.bat

marcus75

Change logon driver Z:\
« Reply #4 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 ?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Change logon driver Z:\
« Reply #5 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).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

marcus75

Change logon driver Z:\
« Reply #6 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Change logon driver Z:\
« Reply #7 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Change logon driver Z:\
« Reply #8 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

marcus75

Change logon driver Z:\
« Reply #9 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Change logon driver Z:\
« Reply #10 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

marcus75

Change logon driver Z:\
« Reply #11 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Change logon driver Z:\
« Reply #12 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline byte

  • *
  • 2,183
  • +2/-0
Change logon driver Z:\
« Reply #13 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.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!