How do I add a windows 8 user to Linux standalone SAMBA server
I would like to add a Windows 8 (Microsoft account) user to a SAMBA user on standalone (not domain) linux server, however I do not know how the Microsoft account maps to linux. I have also setup the samba shares based on group access.
I have guests enabled in SAMBA so when my Windows 8 workstation connected for the first time it did not recognise the user and connected to SAMBA as a guest with nobody as user. Now when I connect to the shares it always connects as guest (that is nobody user on SAMBA).
I would like the guest users to still be allowed to connect as read only.
Is there anyway to force Windows 8 to prompt for login again? Note that my shares are not mapped in explorer they are browsable.
server windows permissions
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I would like to add a Windows 8 (Microsoft account) user to a SAMBA user on standalone (not domain) linux server, however I do not know how the Microsoft account maps to linux. I have also setup the samba shares based on group access.
I have guests enabled in SAMBA so when my Windows 8 workstation connected for the first time it did not recognise the user and connected to SAMBA as a guest with nobody as user. Now when I connect to the shares it always connects as guest (that is nobody user on SAMBA).
I would like the guest users to still be allowed to connect as read only.
Is there anyway to force Windows 8 to prompt for login again? Note that my shares are not mapped in explorer they are browsable.
server windows permissions
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
The user on Windows 8 is:Userbut on linux it'suser. How do I map it without creating another linux account?
– Seb S
Apr 29 '14 at 2:06
A Windows 8 account is not a Microsoft account.
– John Scott
Jul 28 '14 at 15:27
add a comment |
I would like to add a Windows 8 (Microsoft account) user to a SAMBA user on standalone (not domain) linux server, however I do not know how the Microsoft account maps to linux. I have also setup the samba shares based on group access.
I have guests enabled in SAMBA so when my Windows 8 workstation connected for the first time it did not recognise the user and connected to SAMBA as a guest with nobody as user. Now when I connect to the shares it always connects as guest (that is nobody user on SAMBA).
I would like the guest users to still be allowed to connect as read only.
Is there anyway to force Windows 8 to prompt for login again? Note that my shares are not mapped in explorer they are browsable.
server windows permissions
I would like to add a Windows 8 (Microsoft account) user to a SAMBA user on standalone (not domain) linux server, however I do not know how the Microsoft account maps to linux. I have also setup the samba shares based on group access.
I have guests enabled in SAMBA so when my Windows 8 workstation connected for the first time it did not recognise the user and connected to SAMBA as a guest with nobody as user. Now when I connect to the shares it always connects as guest (that is nobody user on SAMBA).
I would like the guest users to still be allowed to connect as read only.
Is there anyway to force Windows 8 to prompt for login again? Note that my shares are not mapped in explorer they are browsable.
server windows permissions
server windows permissions
edited May 2 '14 at 6:50
Seb S
asked Apr 28 '14 at 14:03
Seb SSeb S
113
113
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
The user on Windows 8 is:Userbut on linux it'suser. How do I map it without creating another linux account?
– Seb S
Apr 29 '14 at 2:06
A Windows 8 account is not a Microsoft account.
– John Scott
Jul 28 '14 at 15:27
add a comment |
The user on Windows 8 is:Userbut on linux it'suser. How do I map it without creating another linux account?
– Seb S
Apr 29 '14 at 2:06
A Windows 8 account is not a Microsoft account.
– John Scott
Jul 28 '14 at 15:27
The user on Windows 8 is:
User but on linux it's user. How do I map it without creating another linux account?– Seb S
Apr 29 '14 at 2:06
The user on Windows 8 is:
User but on linux it's user. How do I map it without creating another linux account?– Seb S
Apr 29 '14 at 2:06
A Windows 8 account is not a Microsoft account.
– John Scott
Jul 28 '14 at 15:27
A Windows 8 account is not a Microsoft account.
– John Scott
Jul 28 '14 at 15:27
add a comment |
2 Answers
2
active
oldest
votes
I assume that you have a central windows server with central user profiles (active directory). To integrate these workstations you have to mount the user home directories into /home on your linux machines and hook up the active directory into linux.
The keywords that you want to search for are: ldap pam active directory integration. Useful links:
- Ubuntu Active Directory Howto
- Debian LDAP/PAM
note that integrating a windows machine into linux/ldap is generally not recommended (unless you have lots and lots of spare time on your hands). It might work satisfactorily with Samba 4.0. I haven't tried since it provides its own ldap...
Edit: I think I might have misunderstood you. If you want to access a linux samba share from windows simply follow the Ubuntu Samba Server Guide. If you want to login with as $user to the server simply create $user on the server. And set a samba password for the user:
smbpasswd -a $user
the configure the samba server according to your needs. Note: You don't need ldap/kerberos for this kind of setup. It usually helps to use your windows username and password as username/password for the linux user $user. In that case you won't need to configure any passwords on Windows.
I am not using Active Directory. This is a home server.
– Seb S
Apr 28 '14 at 15:19
add a comment |
I haven't actually tried this but I might need it myself soon. Maybe this link could help you? For future reference I'll copy the proposed solution here as well.
Add a line in /etc/samba/smbusers of the form:
linux_name = windows_name1 windows_name2 <etc.>
e.g.
a_user = a_user@hotmail.com
This maps Windows name(s) (i.e. your Microsoft account used to log on to Windows 8) to a linux name (i.e. an existing linux & samba account). You may also need to add this parameter to the [global] section of: /etc/samba/smb.conf.
username map = /etc/samba/smbusers
To test the configuration use the following command:
testparm -vs | grep "username map"
Let me know if you got it to work!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f457049%2fhow-do-i-add-a-windows-8-user-to-linux-standalone-samba-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I assume that you have a central windows server with central user profiles (active directory). To integrate these workstations you have to mount the user home directories into /home on your linux machines and hook up the active directory into linux.
The keywords that you want to search for are: ldap pam active directory integration. Useful links:
- Ubuntu Active Directory Howto
- Debian LDAP/PAM
note that integrating a windows machine into linux/ldap is generally not recommended (unless you have lots and lots of spare time on your hands). It might work satisfactorily with Samba 4.0. I haven't tried since it provides its own ldap...
Edit: I think I might have misunderstood you. If you want to access a linux samba share from windows simply follow the Ubuntu Samba Server Guide. If you want to login with as $user to the server simply create $user on the server. And set a samba password for the user:
smbpasswd -a $user
the configure the samba server according to your needs. Note: You don't need ldap/kerberos for this kind of setup. It usually helps to use your windows username and password as username/password for the linux user $user. In that case you won't need to configure any passwords on Windows.
I am not using Active Directory. This is a home server.
– Seb S
Apr 28 '14 at 15:19
add a comment |
I assume that you have a central windows server with central user profiles (active directory). To integrate these workstations you have to mount the user home directories into /home on your linux machines and hook up the active directory into linux.
The keywords that you want to search for are: ldap pam active directory integration. Useful links:
- Ubuntu Active Directory Howto
- Debian LDAP/PAM
note that integrating a windows machine into linux/ldap is generally not recommended (unless you have lots and lots of spare time on your hands). It might work satisfactorily with Samba 4.0. I haven't tried since it provides its own ldap...
Edit: I think I might have misunderstood you. If you want to access a linux samba share from windows simply follow the Ubuntu Samba Server Guide. If you want to login with as $user to the server simply create $user on the server. And set a samba password for the user:
smbpasswd -a $user
the configure the samba server according to your needs. Note: You don't need ldap/kerberos for this kind of setup. It usually helps to use your windows username and password as username/password for the linux user $user. In that case you won't need to configure any passwords on Windows.
I am not using Active Directory. This is a home server.
– Seb S
Apr 28 '14 at 15:19
add a comment |
I assume that you have a central windows server with central user profiles (active directory). To integrate these workstations you have to mount the user home directories into /home on your linux machines and hook up the active directory into linux.
The keywords that you want to search for are: ldap pam active directory integration. Useful links:
- Ubuntu Active Directory Howto
- Debian LDAP/PAM
note that integrating a windows machine into linux/ldap is generally not recommended (unless you have lots and lots of spare time on your hands). It might work satisfactorily with Samba 4.0. I haven't tried since it provides its own ldap...
Edit: I think I might have misunderstood you. If you want to access a linux samba share from windows simply follow the Ubuntu Samba Server Guide. If you want to login with as $user to the server simply create $user on the server. And set a samba password for the user:
smbpasswd -a $user
the configure the samba server according to your needs. Note: You don't need ldap/kerberos for this kind of setup. It usually helps to use your windows username and password as username/password for the linux user $user. In that case you won't need to configure any passwords on Windows.
I assume that you have a central windows server with central user profiles (active directory). To integrate these workstations you have to mount the user home directories into /home on your linux machines and hook up the active directory into linux.
The keywords that you want to search for are: ldap pam active directory integration. Useful links:
- Ubuntu Active Directory Howto
- Debian LDAP/PAM
note that integrating a windows machine into linux/ldap is generally not recommended (unless you have lots and lots of spare time on your hands). It might work satisfactorily with Samba 4.0. I haven't tried since it provides its own ldap...
Edit: I think I might have misunderstood you. If you want to access a linux samba share from windows simply follow the Ubuntu Samba Server Guide. If you want to login with as $user to the server simply create $user on the server. And set a samba password for the user:
smbpasswd -a $user
the configure the samba server according to your needs. Note: You don't need ldap/kerberos for this kind of setup. It usually helps to use your windows username and password as username/password for the linux user $user. In that case you won't need to configure any passwords on Windows.
edited Apr 28 '14 at 14:26
answered Apr 28 '14 at 14:14
PascalPascal
516511
516511
I am not using Active Directory. This is a home server.
– Seb S
Apr 28 '14 at 15:19
add a comment |
I am not using Active Directory. This is a home server.
– Seb S
Apr 28 '14 at 15:19
I am not using Active Directory. This is a home server.
– Seb S
Apr 28 '14 at 15:19
I am not using Active Directory. This is a home server.
– Seb S
Apr 28 '14 at 15:19
add a comment |
I haven't actually tried this but I might need it myself soon. Maybe this link could help you? For future reference I'll copy the proposed solution here as well.
Add a line in /etc/samba/smbusers of the form:
linux_name = windows_name1 windows_name2 <etc.>
e.g.
a_user = a_user@hotmail.com
This maps Windows name(s) (i.e. your Microsoft account used to log on to Windows 8) to a linux name (i.e. an existing linux & samba account). You may also need to add this parameter to the [global] section of: /etc/samba/smb.conf.
username map = /etc/samba/smbusers
To test the configuration use the following command:
testparm -vs | grep "username map"
Let me know if you got it to work!
add a comment |
I haven't actually tried this but I might need it myself soon. Maybe this link could help you? For future reference I'll copy the proposed solution here as well.
Add a line in /etc/samba/smbusers of the form:
linux_name = windows_name1 windows_name2 <etc.>
e.g.
a_user = a_user@hotmail.com
This maps Windows name(s) (i.e. your Microsoft account used to log on to Windows 8) to a linux name (i.e. an existing linux & samba account). You may also need to add this parameter to the [global] section of: /etc/samba/smb.conf.
username map = /etc/samba/smbusers
To test the configuration use the following command:
testparm -vs | grep "username map"
Let me know if you got it to work!
add a comment |
I haven't actually tried this but I might need it myself soon. Maybe this link could help you? For future reference I'll copy the proposed solution here as well.
Add a line in /etc/samba/smbusers of the form:
linux_name = windows_name1 windows_name2 <etc.>
e.g.
a_user = a_user@hotmail.com
This maps Windows name(s) (i.e. your Microsoft account used to log on to Windows 8) to a linux name (i.e. an existing linux & samba account). You may also need to add this parameter to the [global] section of: /etc/samba/smb.conf.
username map = /etc/samba/smbusers
To test the configuration use the following command:
testparm -vs | grep "username map"
Let me know if you got it to work!
I haven't actually tried this but I might need it myself soon. Maybe this link could help you? For future reference I'll copy the proposed solution here as well.
Add a line in /etc/samba/smbusers of the form:
linux_name = windows_name1 windows_name2 <etc.>
e.g.
a_user = a_user@hotmail.com
This maps Windows name(s) (i.e. your Microsoft account used to log on to Windows 8) to a linux name (i.e. an existing linux & samba account). You may also need to add this parameter to the [global] section of: /etc/samba/smb.conf.
username map = /etc/samba/smbusers
To test the configuration use the following command:
testparm -vs | grep "username map"
Let me know if you got it to work!
answered Jul 28 '14 at 15:25
LeegaertLeegaert
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f457049%2fhow-do-i-add-a-windows-8-user-to-linux-standalone-samba-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The user on Windows 8 is:
Userbut on linux it'suser. How do I map it without creating another linux account?– Seb S
Apr 29 '14 at 2:06
A Windows 8 account is not a Microsoft account.
– John Scott
Jul 28 '14 at 15:27