password protected samba share
I would like to have a few samba shares. Some of them should be available to everybody (this is already working) and some of them should be protected with a password (and username). For the password protected folders I created a new user, gave him a samba password and wrote his name under valid users = in my share. These were the commands:
useradd joe
passwd joe
smbpasswd -a joe
valid users = vivek raj joe
I followed this little guide: http://www.cyberciti.biz/faq/adding-a-user-to-a-samba-smb-share/
But it looks like it's not working, Windows 7 always tells me that the password is wrong.
Here is my samba config file:
[global]
server string = bananapi
workgroup = WORKGROUP
netbios name = %h
security = user
guest account = root
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
smb ports = 445
max protocol = SMB2
min receivefile size = 16384
deadtime = 30
os level = 20
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
use sendfile = yes
# Using the following configurations as a template allows you to add
# writable shares of disks and paths under /storage
[Share]
path = /storage/share
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/share
[username]
path = /storage/username
available = yes
browsable = yes
public = no
writable = yes
valid users = joe
root preexec = mkdir -p /storage/username
samba shared-folders
add a comment |
I would like to have a few samba shares. Some of them should be available to everybody (this is already working) and some of them should be protected with a password (and username). For the password protected folders I created a new user, gave him a samba password and wrote his name under valid users = in my share. These were the commands:
useradd joe
passwd joe
smbpasswd -a joe
valid users = vivek raj joe
I followed this little guide: http://www.cyberciti.biz/faq/adding-a-user-to-a-samba-smb-share/
But it looks like it's not working, Windows 7 always tells me that the password is wrong.
Here is my samba config file:
[global]
server string = bananapi
workgroup = WORKGROUP
netbios name = %h
security = user
guest account = root
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
smb ports = 445
max protocol = SMB2
min receivefile size = 16384
deadtime = 30
os level = 20
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
use sendfile = yes
# Using the following configurations as a template allows you to add
# writable shares of disks and paths under /storage
[Share]
path = /storage/share
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/share
[username]
path = /storage/username
available = yes
browsable = yes
public = no
writable = yes
valid users = joe
root preexec = mkdir -p /storage/username
samba shared-folders
Please edit your question and explain what you did. First because most people won't be willing to go read an external link to try and understand what you've done and second so we can see what you actually did.
– terdon♦
Mar 29 '15 at 15:08
Thanks for the edit. Please edit again and tell us where exactly you added thevalid usersline. If it's in your samba config file, edit the file to show it.
– terdon♦
Mar 29 '15 at 15:55
No need to edit it, as it's already in the samba config file :) under [username]
– user108455
Mar 29 '15 at 17:13
No, what you have there isvalid users = username. We need to see exactly what you have in your file.
– terdon♦
Mar 29 '15 at 17:20
username is my username e.g. joe
– user108455
Mar 29 '15 at 21:55
add a comment |
I would like to have a few samba shares. Some of them should be available to everybody (this is already working) and some of them should be protected with a password (and username). For the password protected folders I created a new user, gave him a samba password and wrote his name under valid users = in my share. These were the commands:
useradd joe
passwd joe
smbpasswd -a joe
valid users = vivek raj joe
I followed this little guide: http://www.cyberciti.biz/faq/adding-a-user-to-a-samba-smb-share/
But it looks like it's not working, Windows 7 always tells me that the password is wrong.
Here is my samba config file:
[global]
server string = bananapi
workgroup = WORKGROUP
netbios name = %h
security = user
guest account = root
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
smb ports = 445
max protocol = SMB2
min receivefile size = 16384
deadtime = 30
os level = 20
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
use sendfile = yes
# Using the following configurations as a template allows you to add
# writable shares of disks and paths under /storage
[Share]
path = /storage/share
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/share
[username]
path = /storage/username
available = yes
browsable = yes
public = no
writable = yes
valid users = joe
root preexec = mkdir -p /storage/username
samba shared-folders
I would like to have a few samba shares. Some of them should be available to everybody (this is already working) and some of them should be protected with a password (and username). For the password protected folders I created a new user, gave him a samba password and wrote his name under valid users = in my share. These were the commands:
useradd joe
passwd joe
smbpasswd -a joe
valid users = vivek raj joe
I followed this little guide: http://www.cyberciti.biz/faq/adding-a-user-to-a-samba-smb-share/
But it looks like it's not working, Windows 7 always tells me that the password is wrong.
Here is my samba config file:
[global]
server string = bananapi
workgroup = WORKGROUP
netbios name = %h
security = user
guest account = root
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
smb ports = 445
max protocol = SMB2
min receivefile size = 16384
deadtime = 30
os level = 20
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
use sendfile = yes
# Using the following configurations as a template allows you to add
# writable shares of disks and paths under /storage
[Share]
path = /storage/share
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/share
[username]
path = /storage/username
available = yes
browsable = yes
public = no
writable = yes
valid users = joe
root preexec = mkdir -p /storage/username
samba shared-folders
samba shared-folders
edited 9 hours ago
Rui F Ribeiro
41.3k1481140
41.3k1481140
asked Mar 29 '15 at 14:35
user108455user108455
16113
16113
Please edit your question and explain what you did. First because most people won't be willing to go read an external link to try and understand what you've done and second so we can see what you actually did.
– terdon♦
Mar 29 '15 at 15:08
Thanks for the edit. Please edit again and tell us where exactly you added thevalid usersline. If it's in your samba config file, edit the file to show it.
– terdon♦
Mar 29 '15 at 15:55
No need to edit it, as it's already in the samba config file :) under [username]
– user108455
Mar 29 '15 at 17:13
No, what you have there isvalid users = username. We need to see exactly what you have in your file.
– terdon♦
Mar 29 '15 at 17:20
username is my username e.g. joe
– user108455
Mar 29 '15 at 21:55
add a comment |
Please edit your question and explain what you did. First because most people won't be willing to go read an external link to try and understand what you've done and second so we can see what you actually did.
– terdon♦
Mar 29 '15 at 15:08
Thanks for the edit. Please edit again and tell us where exactly you added thevalid usersline. If it's in your samba config file, edit the file to show it.
– terdon♦
Mar 29 '15 at 15:55
No need to edit it, as it's already in the samba config file :) under [username]
– user108455
Mar 29 '15 at 17:13
No, what you have there isvalid users = username. We need to see exactly what you have in your file.
– terdon♦
Mar 29 '15 at 17:20
username is my username e.g. joe
– user108455
Mar 29 '15 at 21:55
Please edit your question and explain what you did. First because most people won't be willing to go read an external link to try and understand what you've done and second so we can see what you actually did.
– terdon♦
Mar 29 '15 at 15:08
Please edit your question and explain what you did. First because most people won't be willing to go read an external link to try and understand what you've done and second so we can see what you actually did.
– terdon♦
Mar 29 '15 at 15:08
Thanks for the edit. Please edit again and tell us where exactly you added the
valid users line. If it's in your samba config file, edit the file to show it.– terdon♦
Mar 29 '15 at 15:55
Thanks for the edit. Please edit again and tell us where exactly you added the
valid users line. If it's in your samba config file, edit the file to show it.– terdon♦
Mar 29 '15 at 15:55
No need to edit it, as it's already in the samba config file :) under [username]
– user108455
Mar 29 '15 at 17:13
No need to edit it, as it's already in the samba config file :) under [username]
– user108455
Mar 29 '15 at 17:13
No, what you have there is
valid users = username. We need to see exactly what you have in your file.– terdon♦
Mar 29 '15 at 17:20
No, what you have there is
valid users = username. We need to see exactly what you have in your file.– terdon♦
Mar 29 '15 at 17:20
username is my username e.g. joe
– user108455
Mar 29 '15 at 21:55
username is my username e.g. joe
– user108455
Mar 29 '15 at 21:55
add a comment |
2 Answers
2
active
oldest
votes
https://www.samba.org/samba/docs/using_samba/ch09.html
you can configure a share using guest ok = yes to allow access to guest users.
This works only when using share-level security
when needing info on something, consider going to the source rather than some other website, here is the table of contents to samba: https://www.samba.org/samba/docs/using_samba/toc.html
you are using
[GLOBAL]
security = user
which is the most restrictive, and for anyone from a Microsoft Windows system to even access any samba share from your linux system they will need to either have or know an account on that linux system, and then know the password.
part of my smb.conf is this
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
security=user
map to guest = Bad User
# map to guest = nobody
usershare allow guests = No
server signing = auto
similiar to yours, the above will cause anyone on a windows system who does not have an account on the linux system to never connect, microsoft windows will respond with cannot access \whatever_server_you_typed.
This is because Map to Guest = Bad User where "Bad User" does not exist on the linux system as a user account, it is also syntactically invalid because it has a space.
Using Map to Guest = nobody where nobody however is a valid linux account will result in microsoft windows prompting for a username and password, and this will happen when the given username from microsoft windows is not also a username on the linux system running samba-server.
If you choose this method under Security = User you can use the method i described above to potentially satisfy your security needs. Otherwise you would need to do security = share to accomplish what you initially asked to do- where anyone on the network can access a specific folder without being prompted for a password.
For Security the choices are User, Share, Server, and Domain.
The samba help documents will describe what functionality is and is not available under each.
And I recommend you undo the guest account = root
I did not track down the guest account = option in the help docs, I assume it is the same as Map to Guest (just like the Public option is really Guest OK = yes) and for obvious security implications you don't want to map some unknown user to the root account.
I getWARNING: Ignoring invalid value 'nobody' for parameter 'map to guest'.testparmdoesn't seem to list myguest account = nobodyeither.
– jozxyqk
Sep 20 '17 at 22:41
add a comment |
You need to create a group with allowed users (like 'restrictedgroup') and specify in your smb.conf:
valid users = @restrictedgroup
Then only the users in the restricted group can access the folder.
2
Not true. A user account name is also perfectly valid here
– roaima
Nov 28 '16 at 17:41
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f193220%2fpassword-protected-samba-share%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
https://www.samba.org/samba/docs/using_samba/ch09.html
you can configure a share using guest ok = yes to allow access to guest users.
This works only when using share-level security
when needing info on something, consider going to the source rather than some other website, here is the table of contents to samba: https://www.samba.org/samba/docs/using_samba/toc.html
you are using
[GLOBAL]
security = user
which is the most restrictive, and for anyone from a Microsoft Windows system to even access any samba share from your linux system they will need to either have or know an account on that linux system, and then know the password.
part of my smb.conf is this
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
security=user
map to guest = Bad User
# map to guest = nobody
usershare allow guests = No
server signing = auto
similiar to yours, the above will cause anyone on a windows system who does not have an account on the linux system to never connect, microsoft windows will respond with cannot access \whatever_server_you_typed.
This is because Map to Guest = Bad User where "Bad User" does not exist on the linux system as a user account, it is also syntactically invalid because it has a space.
Using Map to Guest = nobody where nobody however is a valid linux account will result in microsoft windows prompting for a username and password, and this will happen when the given username from microsoft windows is not also a username on the linux system running samba-server.
If you choose this method under Security = User you can use the method i described above to potentially satisfy your security needs. Otherwise you would need to do security = share to accomplish what you initially asked to do- where anyone on the network can access a specific folder without being prompted for a password.
For Security the choices are User, Share, Server, and Domain.
The samba help documents will describe what functionality is and is not available under each.
And I recommend you undo the guest account = root
I did not track down the guest account = option in the help docs, I assume it is the same as Map to Guest (just like the Public option is really Guest OK = yes) and for obvious security implications you don't want to map some unknown user to the root account.
I getWARNING: Ignoring invalid value 'nobody' for parameter 'map to guest'.testparmdoesn't seem to list myguest account = nobodyeither.
– jozxyqk
Sep 20 '17 at 22:41
add a comment |
https://www.samba.org/samba/docs/using_samba/ch09.html
you can configure a share using guest ok = yes to allow access to guest users.
This works only when using share-level security
when needing info on something, consider going to the source rather than some other website, here is the table of contents to samba: https://www.samba.org/samba/docs/using_samba/toc.html
you are using
[GLOBAL]
security = user
which is the most restrictive, and for anyone from a Microsoft Windows system to even access any samba share from your linux system they will need to either have or know an account on that linux system, and then know the password.
part of my smb.conf is this
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
security=user
map to guest = Bad User
# map to guest = nobody
usershare allow guests = No
server signing = auto
similiar to yours, the above will cause anyone on a windows system who does not have an account on the linux system to never connect, microsoft windows will respond with cannot access \whatever_server_you_typed.
This is because Map to Guest = Bad User where "Bad User" does not exist on the linux system as a user account, it is also syntactically invalid because it has a space.
Using Map to Guest = nobody where nobody however is a valid linux account will result in microsoft windows prompting for a username and password, and this will happen when the given username from microsoft windows is not also a username on the linux system running samba-server.
If you choose this method under Security = User you can use the method i described above to potentially satisfy your security needs. Otherwise you would need to do security = share to accomplish what you initially asked to do- where anyone on the network can access a specific folder without being prompted for a password.
For Security the choices are User, Share, Server, and Domain.
The samba help documents will describe what functionality is and is not available under each.
And I recommend you undo the guest account = root
I did not track down the guest account = option in the help docs, I assume it is the same as Map to Guest (just like the Public option is really Guest OK = yes) and for obvious security implications you don't want to map some unknown user to the root account.
I getWARNING: Ignoring invalid value 'nobody' for parameter 'map to guest'.testparmdoesn't seem to list myguest account = nobodyeither.
– jozxyqk
Sep 20 '17 at 22:41
add a comment |
https://www.samba.org/samba/docs/using_samba/ch09.html
you can configure a share using guest ok = yes to allow access to guest users.
This works only when using share-level security
when needing info on something, consider going to the source rather than some other website, here is the table of contents to samba: https://www.samba.org/samba/docs/using_samba/toc.html
you are using
[GLOBAL]
security = user
which is the most restrictive, and for anyone from a Microsoft Windows system to even access any samba share from your linux system they will need to either have or know an account on that linux system, and then know the password.
part of my smb.conf is this
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
security=user
map to guest = Bad User
# map to guest = nobody
usershare allow guests = No
server signing = auto
similiar to yours, the above will cause anyone on a windows system who does not have an account on the linux system to never connect, microsoft windows will respond with cannot access \whatever_server_you_typed.
This is because Map to Guest = Bad User where "Bad User" does not exist on the linux system as a user account, it is also syntactically invalid because it has a space.
Using Map to Guest = nobody where nobody however is a valid linux account will result in microsoft windows prompting for a username and password, and this will happen when the given username from microsoft windows is not also a username on the linux system running samba-server.
If you choose this method under Security = User you can use the method i described above to potentially satisfy your security needs. Otherwise you would need to do security = share to accomplish what you initially asked to do- where anyone on the network can access a specific folder without being prompted for a password.
For Security the choices are User, Share, Server, and Domain.
The samba help documents will describe what functionality is and is not available under each.
And I recommend you undo the guest account = root
I did not track down the guest account = option in the help docs, I assume it is the same as Map to Guest (just like the Public option is really Guest OK = yes) and for obvious security implications you don't want to map some unknown user to the root account.
https://www.samba.org/samba/docs/using_samba/ch09.html
you can configure a share using guest ok = yes to allow access to guest users.
This works only when using share-level security
when needing info on something, consider going to the source rather than some other website, here is the table of contents to samba: https://www.samba.org/samba/docs/using_samba/toc.html
you are using
[GLOBAL]
security = user
which is the most restrictive, and for anyone from a Microsoft Windows system to even access any samba share from your linux system they will need to either have or know an account on that linux system, and then know the password.
part of my smb.conf is this
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
security=user
map to guest = Bad User
# map to guest = nobody
usershare allow guests = No
server signing = auto
similiar to yours, the above will cause anyone on a windows system who does not have an account on the linux system to never connect, microsoft windows will respond with cannot access \whatever_server_you_typed.
This is because Map to Guest = Bad User where "Bad User" does not exist on the linux system as a user account, it is also syntactically invalid because it has a space.
Using Map to Guest = nobody where nobody however is a valid linux account will result in microsoft windows prompting for a username and password, and this will happen when the given username from microsoft windows is not also a username on the linux system running samba-server.
If you choose this method under Security = User you can use the method i described above to potentially satisfy your security needs. Otherwise you would need to do security = share to accomplish what you initially asked to do- where anyone on the network can access a specific folder without being prompted for a password.
For Security the choices are User, Share, Server, and Domain.
The samba help documents will describe what functionality is and is not available under each.
And I recommend you undo the guest account = root
I did not track down the guest account = option in the help docs, I assume it is the same as Map to Guest (just like the Public option is really Guest OK = yes) and for obvious security implications you don't want to map some unknown user to the root account.
edited Nov 28 '16 at 20:19
answered Nov 28 '16 at 19:42
ronron
1,0841816
1,0841816
I getWARNING: Ignoring invalid value 'nobody' for parameter 'map to guest'.testparmdoesn't seem to list myguest account = nobodyeither.
– jozxyqk
Sep 20 '17 at 22:41
add a comment |
I getWARNING: Ignoring invalid value 'nobody' for parameter 'map to guest'.testparmdoesn't seem to list myguest account = nobodyeither.
– jozxyqk
Sep 20 '17 at 22:41
I get
WARNING: Ignoring invalid value 'nobody' for parameter 'map to guest'. testparm doesn't seem to list my guest account = nobody either.– jozxyqk
Sep 20 '17 at 22:41
I get
WARNING: Ignoring invalid value 'nobody' for parameter 'map to guest'. testparm doesn't seem to list my guest account = nobody either.– jozxyqk
Sep 20 '17 at 22:41
add a comment |
You need to create a group with allowed users (like 'restrictedgroup') and specify in your smb.conf:
valid users = @restrictedgroup
Then only the users in the restricted group can access the folder.
2
Not true. A user account name is also perfectly valid here
– roaima
Nov 28 '16 at 17:41
add a comment |
You need to create a group with allowed users (like 'restrictedgroup') and specify in your smb.conf:
valid users = @restrictedgroup
Then only the users in the restricted group can access the folder.
2
Not true. A user account name is also perfectly valid here
– roaima
Nov 28 '16 at 17:41
add a comment |
You need to create a group with allowed users (like 'restrictedgroup') and specify in your smb.conf:
valid users = @restrictedgroup
Then only the users in the restricted group can access the folder.
You need to create a group with allowed users (like 'restrictedgroup') and specify in your smb.conf:
valid users = @restrictedgroup
Then only the users in the restricted group can access the folder.
answered Nov 28 '16 at 17:25
Rafael VerganiRafael Vergani
61
61
2
Not true. A user account name is also perfectly valid here
– roaima
Nov 28 '16 at 17:41
add a comment |
2
Not true. A user account name is also perfectly valid here
– roaima
Nov 28 '16 at 17:41
2
2
Not true. A user account name is also perfectly valid here
– roaima
Nov 28 '16 at 17:41
Not true. A user account name is also perfectly valid here
– roaima
Nov 28 '16 at 17:41
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f193220%2fpassword-protected-samba-share%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
Please edit your question and explain what you did. First because most people won't be willing to go read an external link to try and understand what you've done and second so we can see what you actually did.
– terdon♦
Mar 29 '15 at 15:08
Thanks for the edit. Please edit again and tell us where exactly you added the
valid usersline. If it's in your samba config file, edit the file to show it.– terdon♦
Mar 29 '15 at 15:55
No need to edit it, as it's already in the samba config file :) under [username]
– user108455
Mar 29 '15 at 17:13
No, what you have there is
valid users = username. We need to see exactly what you have in your file.– terdon♦
Mar 29 '15 at 17:20
username is my username e.g. joe
– user108455
Mar 29 '15 at 21:55