Connect Windows 10 to samba share with specific linux user
I have a directory on my Ubuntu 14 box that I'd like to connect to via my Windows 10 box. I've created a new Samba user, set the new user's password, and verified that the new user has the proper permissions for the directory. When I try map to this drive in Windows Explorer, however, I get an "Access is denied" error. I'd like to use the specific linux user 'music' only - I don't want to make this directory accessible to everyone/guests. 'music' needs to have both read and write access.
I'm using the username music@192.168.1.6 (LAN IP address is static) with the correct Samba password (verified with smbclient).
What do I need to do differently?
Here's the excerpt from my log.elwah file (elwah is the name of my Win10 box):
[2016/01/23 17:59:00.839965, 0] ../source3/smbd/uid.c:153(check_user_share_access)
user music connection to Music denied due to share security descriptor.
And here is my smb.conf file:
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
encrypt passwords = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = no
ntlm auth = no
lanman auth = no
client ntlmv2 auth = yes
[Music]
comment = My shared music folder
path = /mnt/largemarge/music/
valid users = music
read only = no
guest ok = no
samba file-sharing windows-10 samba4
|
show 1 more comment
I have a directory on my Ubuntu 14 box that I'd like to connect to via my Windows 10 box. I've created a new Samba user, set the new user's password, and verified that the new user has the proper permissions for the directory. When I try map to this drive in Windows Explorer, however, I get an "Access is denied" error. I'd like to use the specific linux user 'music' only - I don't want to make this directory accessible to everyone/guests. 'music' needs to have both read and write access.
I'm using the username music@192.168.1.6 (LAN IP address is static) with the correct Samba password (verified with smbclient).
What do I need to do differently?
Here's the excerpt from my log.elwah file (elwah is the name of my Win10 box):
[2016/01/23 17:59:00.839965, 0] ../source3/smbd/uid.c:153(check_user_share_access)
user music connection to Music denied due to share security descriptor.
And here is my smb.conf file:
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
encrypt passwords = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = no
ntlm auth = no
lanman auth = no
client ntlmv2 auth = yes
[Music]
comment = My shared music folder
path = /mnt/largemarge/music/
valid users = music
read only = no
guest ok = no
samba file-sharing windows-10 samba4
Who is the owner/group of your music folder? Did you make sure when you created the music user that you have them as part of at least the group that can access your music folder? Just some thoughts. Also, in your [Music] section add inbrowseable = yes
. That is not needed for access, but it does help to add browsing capabilities.
– Terrance
Jan 24 '16 at 1:36
hi @Terrance Yes the music folder is owned by the user 'music' and the group 'music' . I've addedbrowseable = yes
, but that hasn't had any effect.
– the_meter413
Jan 24 '16 at 1:48
Did you by chance try the login without the@192.168.1.6
? I don't think the host needs to be specified. I setup just a like share on mine, and it asked for my username and password just fine. I didn't put any@host
on it.
– Terrance
Jan 24 '16 at 1:52
I tried both with and without the @host, and no success.
– the_meter413
Jan 24 '16 at 1:53
OK. Let me see if I can find some old notes of mine when setting up samba shares.
– Terrance
Jan 24 '16 at 1:53
|
show 1 more comment
I have a directory on my Ubuntu 14 box that I'd like to connect to via my Windows 10 box. I've created a new Samba user, set the new user's password, and verified that the new user has the proper permissions for the directory. When I try map to this drive in Windows Explorer, however, I get an "Access is denied" error. I'd like to use the specific linux user 'music' only - I don't want to make this directory accessible to everyone/guests. 'music' needs to have both read and write access.
I'm using the username music@192.168.1.6 (LAN IP address is static) with the correct Samba password (verified with smbclient).
What do I need to do differently?
Here's the excerpt from my log.elwah file (elwah is the name of my Win10 box):
[2016/01/23 17:59:00.839965, 0] ../source3/smbd/uid.c:153(check_user_share_access)
user music connection to Music denied due to share security descriptor.
And here is my smb.conf file:
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
encrypt passwords = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = no
ntlm auth = no
lanman auth = no
client ntlmv2 auth = yes
[Music]
comment = My shared music folder
path = /mnt/largemarge/music/
valid users = music
read only = no
guest ok = no
samba file-sharing windows-10 samba4
I have a directory on my Ubuntu 14 box that I'd like to connect to via my Windows 10 box. I've created a new Samba user, set the new user's password, and verified that the new user has the proper permissions for the directory. When I try map to this drive in Windows Explorer, however, I get an "Access is denied" error. I'd like to use the specific linux user 'music' only - I don't want to make this directory accessible to everyone/guests. 'music' needs to have both read and write access.
I'm using the username music@192.168.1.6 (LAN IP address is static) with the correct Samba password (verified with smbclient).
What do I need to do differently?
Here's the excerpt from my log.elwah file (elwah is the name of my Win10 box):
[2016/01/23 17:59:00.839965, 0] ../source3/smbd/uid.c:153(check_user_share_access)
user music connection to Music denied due to share security descriptor.
And here is my smb.conf file:
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
wins support = yes
dns proxy = no
encrypt passwords = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = no
ntlm auth = no
lanman auth = no
client ntlmv2 auth = yes
[Music]
comment = My shared music folder
path = /mnt/largemarge/music/
valid users = music
read only = no
guest ok = no
samba file-sharing windows-10 samba4
samba file-sharing windows-10 samba4
edited Jan 24 '16 at 2:01
asked Jan 24 '16 at 1:08
the_meter413
1631212
1631212
Who is the owner/group of your music folder? Did you make sure when you created the music user that you have them as part of at least the group that can access your music folder? Just some thoughts. Also, in your [Music] section add inbrowseable = yes
. That is not needed for access, but it does help to add browsing capabilities.
– Terrance
Jan 24 '16 at 1:36
hi @Terrance Yes the music folder is owned by the user 'music' and the group 'music' . I've addedbrowseable = yes
, but that hasn't had any effect.
– the_meter413
Jan 24 '16 at 1:48
Did you by chance try the login without the@192.168.1.6
? I don't think the host needs to be specified. I setup just a like share on mine, and it asked for my username and password just fine. I didn't put any@host
on it.
– Terrance
Jan 24 '16 at 1:52
I tried both with and without the @host, and no success.
– the_meter413
Jan 24 '16 at 1:53
OK. Let me see if I can find some old notes of mine when setting up samba shares.
– Terrance
Jan 24 '16 at 1:53
|
show 1 more comment
Who is the owner/group of your music folder? Did you make sure when you created the music user that you have them as part of at least the group that can access your music folder? Just some thoughts. Also, in your [Music] section add inbrowseable = yes
. That is not needed for access, but it does help to add browsing capabilities.
– Terrance
Jan 24 '16 at 1:36
hi @Terrance Yes the music folder is owned by the user 'music' and the group 'music' . I've addedbrowseable = yes
, but that hasn't had any effect.
– the_meter413
Jan 24 '16 at 1:48
Did you by chance try the login without the@192.168.1.6
? I don't think the host needs to be specified. I setup just a like share on mine, and it asked for my username and password just fine. I didn't put any@host
on it.
– Terrance
Jan 24 '16 at 1:52
I tried both with and without the @host, and no success.
– the_meter413
Jan 24 '16 at 1:53
OK. Let me see if I can find some old notes of mine when setting up samba shares.
– Terrance
Jan 24 '16 at 1:53
Who is the owner/group of your music folder? Did you make sure when you created the music user that you have them as part of at least the group that can access your music folder? Just some thoughts. Also, in your [Music] section add in
browseable = yes
. That is not needed for access, but it does help to add browsing capabilities.– Terrance
Jan 24 '16 at 1:36
Who is the owner/group of your music folder? Did you make sure when you created the music user that you have them as part of at least the group that can access your music folder? Just some thoughts. Also, in your [Music] section add in
browseable = yes
. That is not needed for access, but it does help to add browsing capabilities.– Terrance
Jan 24 '16 at 1:36
hi @Terrance Yes the music folder is owned by the user 'music' and the group 'music' . I've added
browseable = yes
, but that hasn't had any effect.– the_meter413
Jan 24 '16 at 1:48
hi @Terrance Yes the music folder is owned by the user 'music' and the group 'music' . I've added
browseable = yes
, but that hasn't had any effect.– the_meter413
Jan 24 '16 at 1:48
Did you by chance try the login without the
@192.168.1.6
? I don't think the host needs to be specified. I setup just a like share on mine, and it asked for my username and password just fine. I didn't put any @host
on it.– Terrance
Jan 24 '16 at 1:52
Did you by chance try the login without the
@192.168.1.6
? I don't think the host needs to be specified. I setup just a like share on mine, and it asked for my username and password just fine. I didn't put any @host
on it.– Terrance
Jan 24 '16 at 1:52
I tried both with and without the @host, and no success.
– the_meter413
Jan 24 '16 at 1:53
I tried both with and without the @host, and no success.
– the_meter413
Jan 24 '16 at 1:53
OK. Let me see if I can find some old notes of mine when setting up samba shares.
– Terrance
Jan 24 '16 at 1:53
OK. Let me see if I can find some old notes of mine when setting up samba shares.
– Terrance
Jan 24 '16 at 1:53
|
show 1 more comment
1 Answer
1
active
oldest
votes
I was able to setup a like configuration with my host, and when I went to access the share through the network browser of Windows 10, it prompted me for my username and password. It only opened up when I gave it the correct information.
Looking at what you have compared to my setup, the following lines I have added to my [global]
section of my /etc/samba/smb.conf
file:
[global]
usershare owner only = false
unix extensions = no
follow symlinks = yes
wide links = yes
You can also try installing Samba Server Configuration
that is a GUI control of your Samba settings by typing in the following:
sudo apt-get install gksu system-config-samba
The gksu
is used to launch the Samba Server Configuration
application with sudo
access.
Hope this helps!
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%2f724861%2fconnect-windows-10-to-samba-share-with-specific-linux-user%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was able to setup a like configuration with my host, and when I went to access the share through the network browser of Windows 10, it prompted me for my username and password. It only opened up when I gave it the correct information.
Looking at what you have compared to my setup, the following lines I have added to my [global]
section of my /etc/samba/smb.conf
file:
[global]
usershare owner only = false
unix extensions = no
follow symlinks = yes
wide links = yes
You can also try installing Samba Server Configuration
that is a GUI control of your Samba settings by typing in the following:
sudo apt-get install gksu system-config-samba
The gksu
is used to launch the Samba Server Configuration
application with sudo
access.
Hope this helps!
add a comment |
I was able to setup a like configuration with my host, and when I went to access the share through the network browser of Windows 10, it prompted me for my username and password. It only opened up when I gave it the correct information.
Looking at what you have compared to my setup, the following lines I have added to my [global]
section of my /etc/samba/smb.conf
file:
[global]
usershare owner only = false
unix extensions = no
follow symlinks = yes
wide links = yes
You can also try installing Samba Server Configuration
that is a GUI control of your Samba settings by typing in the following:
sudo apt-get install gksu system-config-samba
The gksu
is used to launch the Samba Server Configuration
application with sudo
access.
Hope this helps!
add a comment |
I was able to setup a like configuration with my host, and when I went to access the share through the network browser of Windows 10, it prompted me for my username and password. It only opened up when I gave it the correct information.
Looking at what you have compared to my setup, the following lines I have added to my [global]
section of my /etc/samba/smb.conf
file:
[global]
usershare owner only = false
unix extensions = no
follow symlinks = yes
wide links = yes
You can also try installing Samba Server Configuration
that is a GUI control of your Samba settings by typing in the following:
sudo apt-get install gksu system-config-samba
The gksu
is used to launch the Samba Server Configuration
application with sudo
access.
Hope this helps!
I was able to setup a like configuration with my host, and when I went to access the share through the network browser of Windows 10, it prompted me for my username and password. It only opened up when I gave it the correct information.
Looking at what you have compared to my setup, the following lines I have added to my [global]
section of my /etc/samba/smb.conf
file:
[global]
usershare owner only = false
unix extensions = no
follow symlinks = yes
wide links = yes
You can also try installing Samba Server Configuration
that is a GUI control of your Samba settings by typing in the following:
sudo apt-get install gksu system-config-samba
The gksu
is used to launch the Samba Server Configuration
application with sudo
access.
Hope this helps!
edited Jan 24 '16 at 2:25
answered Jan 24 '16 at 2:05
Terrance
18.6k34193
18.6k34193
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f724861%2fconnect-windows-10-to-samba-share-with-specific-linux-user%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
Who is the owner/group of your music folder? Did you make sure when you created the music user that you have them as part of at least the group that can access your music folder? Just some thoughts. Also, in your [Music] section add in
browseable = yes
. That is not needed for access, but it does help to add browsing capabilities.– Terrance
Jan 24 '16 at 1:36
hi @Terrance Yes the music folder is owned by the user 'music' and the group 'music' . I've added
browseable = yes
, but that hasn't had any effect.– the_meter413
Jan 24 '16 at 1:48
Did you by chance try the login without the
@192.168.1.6
? I don't think the host needs to be specified. I setup just a like share on mine, and it asked for my username and password just fine. I didn't put any@host
on it.– Terrance
Jan 24 '16 at 1:52
I tried both with and without the @host, and no success.
– the_meter413
Jan 24 '16 at 1:53
OK. Let me see if I can find some old notes of mine when setting up samba shares.
– Terrance
Jan 24 '16 at 1:53