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
-
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
-
Try "net use H: /home" at a command prompt.
If it does what you want, you can add it to your netlogon script.
Michael
-
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 .
-
Look into /home/e-smith/files/samba/netlogon/netlogon.bat
-
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 ?
-
Simply modify your netlogon.bat to delete the z: drive
net /delete z:
and add the h: drive as home directory:
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).
-
I'm searching the file in the samba configuration to change Z : in a different letter like G: or H: or similar
-
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:
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:
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
expand-template /etc/smb.conf
Restart Samba
/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.
-
Added a NFR for this option to have it available in Feature Releases of SMEServer: http://bugs.contribs.org/show_bug.cgi?id=1155
-
[Apply the new settings to the configuration file
expand-template /etc/smb.conf
Restart Samba
/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
-
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?
whereis smb.conf
Is the samba service enabled? You can verify that with the following commands:
db configuration getprop smb status
db configuration getprop smbd status
Is the samba deamon running?
ps x | grep smbd
-
Strange! I assume you are running SMEServer 7.0. Is that correct?
What does this command yield?
whereis smb.conf
I use SMEServer 7.0 rc1
My smb.conf is in /etc/samba/smb.conf
-
Strange! I assume you are running SMEServer 7.0. Is that correct?
What does this command yield?
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.
-
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.