Re: [Samba] Mount logon Home dir on Linux (CTM)
So the question for this list would be: how can I query a Windows NT PDC (no ldap) about a user's home directory. That script may need to have an administrator password to be able to query the PDC. I found the answer to this one. It should be pretty easy with a few lines of Perl. Tthis is how you can use rpcclient to find out: $ rpcclient -W DomainName -U AnyUserName%ThatUsersPassword -I 192.168.1.x -c "queryuser $USER_RID" ServerName This will output info like Home Drive : Dir Drive : Profile Path: Logon Script: etc. To get the $USER_RID which you need for that query, first do: $ rpcclient -W DomainName -U AnyUserName%ThatUsersPassword -I 192.168.1.x -c "lookupnames $USER_NAME" ServerName it will tell you something like this ... $USER_NAME S-1-5-21-235741621-998855438-184960113-1063 (User: 1) The $USER_RID you want is 1063. To get it with Perl, it would look something like my ($USER_RID) = /.*-(\d+)/; (once you have the right output line in $_) Once you know where the user's home is, you can mount it through nfs, and authentication should be automatic if the Linux side of things is configured correctly. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Mount logon Home dir on Linux (CTM)
I was thinking... if nothing else woks, I will just create a default kde desktop shortcut pointing to smb:\\MY_SAMBA_SERVER\username... That i think I can do, should be easy! :) Is there a way to at least make Konqueror stop asking the user and password and use the same user and password that was used to log in??? Cristian If you figure this one out, please let me know. I've been trying to do this for at least a year now with no luck. -Ian Cristian Thiago Moecke wrote: Hmmm... Ok... I will be happy to if I can make a script that mounts \\MY_SAMBA_SERVER\username siwthout asking the user for the password (so, how can I tell the script to use the same password and username of the current user?)... Well, for the users that dont have the home dir in \\MY_SAMBA_SERVER i will just say "sorry" :D Cristian I suppose you will have to add some scripting to manage the Linux clients. A script could ask the NT PDC about the user's home, and then mount it directly through nfs. So the question for this list would be: how can I query a Windows NT PDC (no ldap) about a user's home directory. That script may need to have an administrator password to be able to query the PDC. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Mount logon Home dir on Linux (CTM)
If you figure this one out, please let me know. I've been trying to do this for at least a year now with no luck. -Ian Cristian Thiago Moecke wrote: Hmmm... Ok... I will be happy to if I can make a script that mounts \\MY_SAMBA_SERVER\username siwthout asking the user for the password (so, how can I tell the script to use the same password and username of the current user?)... Well, for the users that dont have the home dir in \\MY_SAMBA_SERVER i will just say "sorry" :D Cristian I suppose you will have to add some scripting to manage the Linux clients. A script could ask the NT PDC about the user's home, and then mount it directly through nfs. So the question for this list would be: how can I query a Windows NT PDC (no ldap) about a user's home directory. That script may need to have an administrator password to be able to query the PDC. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Mount logon Home dir on Linux (CTM)
Hmmm... Ok... I will be happy to if I can make a script that mounts \\MY_SAMBA_SERVER\username siwthout asking the user for the password (so, how can I tell the script to use the same password and username of the current user?)... Well, for the users that dont have the home dir in \\MY_SAMBA_SERVER i will just say "sorry" :D Cristian I suppose you will have to add some scripting to manage the Linux clients. A script could ask the NT PDC about the user's home, and then mount it directly through nfs. So the question for this list would be: how can I query a Windows NT PDC (no ldap) about a user's home directory. That script may need to have an administrator password to be able to query the PDC. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Mount logon Home dir on Linux (CTM)
I suppose you will have to add some scripting to manage the Linux clients. A script could ask the NT PDC about the user's home, and then mount it directly through nfs. So the question for this list would be: how can I query a Windows NT PDC (no ldap) about a user's home directory. That script may need to have an administrator password to be able to query the PDC. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Mount logon Home dir on Linux (CTM)
I will try to explian it better this time. I have a Windows NT 4.0 Server, that is the PDC on my network. I also have a FC3 Samba 3 server that is the file server, where most of logon home dirs are stored. In the NT PDC i set up most users to map Z: drive to \\MY_SAMBA_SERVER\username In the Win XP workstations everithing is wrking realy fine. Now i want to set up some Linux Fedora Core 4 Workstations too. I already installed the FC4, samba and winbind, everithing working fine too. I can log in in linux using my NT password. Just what I need now is to mount the logon home dir to the users who log in in the linux workstation. I didnt found out reading the docs and looking in the internet how can I do it (and IF I can). I can run a logon script that mounts \\MY_SAMBA_SERVER\username using smbmount, but that has 2 problems: firist, it will ask the password, but how i can make the script know the password? And the second problem: some users dont have the logon home dir in the MY_SAMBA_SERVER. So I think probably there is a better way to do it, maybe using pam.d, i dont know. Anyone could help me on that? Thanks for any help, Cristian T. Moecke LMP-UFSC -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba