Nas with raspberry pi - how to connect through windows












0















I have setup a raspberry pi nas and it works nice but I want to share the HDD which is connect via usb to the raspberry pi and not the sd card which is on the raspberry pi. How can I make it ?



I have mount my HDD with sudo mount /dev/sda1 /home/shares/public/disk1



When I tried to add with \raspberrypipublicdisk1 Windows say that he need a username and a password. When I have setup my nas with samba, I have do this : sudo smbpasswd -a pi and I have give the same password that is use for my session. But when i'm on Windows, he tell me that the password is incorect, what should I do ?










share|improve this question




















  • 1





    There are tons of guides out there that describe this in detail.

    – SiXandSeven8ths
    Feb 21 at 16:47











  • Thanx for helping me. If you can explain me a solution that would be useful

    – Frink Léo
    Feb 21 at 18:19


















0















I have setup a raspberry pi nas and it works nice but I want to share the HDD which is connect via usb to the raspberry pi and not the sd card which is on the raspberry pi. How can I make it ?



I have mount my HDD with sudo mount /dev/sda1 /home/shares/public/disk1



When I tried to add with \raspberrypipublicdisk1 Windows say that he need a username and a password. When I have setup my nas with samba, I have do this : sudo smbpasswd -a pi and I have give the same password that is use for my session. But when i'm on Windows, he tell me that the password is incorect, what should I do ?










share|improve this question




















  • 1





    There are tons of guides out there that describe this in detail.

    – SiXandSeven8ths
    Feb 21 at 16:47











  • Thanx for helping me. If you can explain me a solution that would be useful

    – Frink Léo
    Feb 21 at 18:19
















0












0








0








I have setup a raspberry pi nas and it works nice but I want to share the HDD which is connect via usb to the raspberry pi and not the sd card which is on the raspberry pi. How can I make it ?



I have mount my HDD with sudo mount /dev/sda1 /home/shares/public/disk1



When I tried to add with \raspberrypipublicdisk1 Windows say that he need a username and a password. When I have setup my nas with samba, I have do this : sudo smbpasswd -a pi and I have give the same password that is use for my session. But when i'm on Windows, he tell me that the password is incorect, what should I do ?










share|improve this question
















I have setup a raspberry pi nas and it works nice but I want to share the HDD which is connect via usb to the raspberry pi and not the sd card which is on the raspberry pi. How can I make it ?



I have mount my HDD with sudo mount /dev/sda1 /home/shares/public/disk1



When I tried to add with \raspberrypipublicdisk1 Windows say that he need a username and a password. When I have setup my nas with samba, I have do this : sudo smbpasswd -a pi and I have give the same password that is use for my session. But when i'm on Windows, he tell me that the password is incorect, what should I do ?







nas raspberry-pi






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 21 at 18:49







Frink Léo

















asked Feb 21 at 15:23









Frink LéoFrink Léo

12




12








  • 1





    There are tons of guides out there that describe this in detail.

    – SiXandSeven8ths
    Feb 21 at 16:47











  • Thanx for helping me. If you can explain me a solution that would be useful

    – Frink Léo
    Feb 21 at 18:19
















  • 1





    There are tons of guides out there that describe this in detail.

    – SiXandSeven8ths
    Feb 21 at 16:47











  • Thanx for helping me. If you can explain me a solution that would be useful

    – Frink Léo
    Feb 21 at 18:19










1




1





There are tons of guides out there that describe this in detail.

– SiXandSeven8ths
Feb 21 at 16:47





There are tons of guides out there that describe this in detail.

– SiXandSeven8ths
Feb 21 at 16:47













Thanx for helping me. If you can explain me a solution that would be useful

– Frink Léo
Feb 21 at 18:19







Thanx for helping me. If you can explain me a solution that would be useful

– Frink Léo
Feb 21 at 18:19












1 Answer
1






active

oldest

votes


















0














Going out on a limb here, but it sounds like you added pi as a samba user without setting pi up as a samba user.



What you should have done:





  • Add in a user that can access the Pi’s samba shares. Make an account with the username username and the password password. You can make your username and password whatever you wish. To do so type the following commands:



    sudo useradd username -m -G users



    sudo passwd username




  • You’ll be prompted to type in the password twice to confirm. After confirming the password, it’s time to add “username” as a legitimate Samba user. Enter the following command (this is what I think you did):



    sudo smbpasswd -a username



  • Enter the password for the account when prompted.



You can now hop onto any Samba-capable machine on your network and test connectivity to the network share.



And here's where I found that info, its the guide I use: Rasp Pi NAS






share|improve this answer


























  • When I type sudo smbpasswd -a backups it ask me twice for SMB password but after that, it return me "Failed to add entry for user backups."

    – Frink Léo
    Feb 22 at 11:59











  • Oops, sorry, I had a typo. Should have said sudo smbpasswd -a username. I was editing this another source to be more generic and suitable to the scenario.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Because you are now adding the user as a samba user. Previous step creates the user.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Okey but now Windows say me "access denied", username and password are correct but acces is denied. I'm almost sure that it's a problem from the smb.conf file

    – Frink Léo
    Feb 22 at 15:55













  • What's you config file look like?

    – SiXandSeven8ths
    Feb 22 at 16:10











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1408198%2fnas-with-raspberry-pi-how-to-connect-through-windows%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









0














Going out on a limb here, but it sounds like you added pi as a samba user without setting pi up as a samba user.



What you should have done:





  • Add in a user that can access the Pi’s samba shares. Make an account with the username username and the password password. You can make your username and password whatever you wish. To do so type the following commands:



    sudo useradd username -m -G users



    sudo passwd username




  • You’ll be prompted to type in the password twice to confirm. After confirming the password, it’s time to add “username” as a legitimate Samba user. Enter the following command (this is what I think you did):



    sudo smbpasswd -a username



  • Enter the password for the account when prompted.



You can now hop onto any Samba-capable machine on your network and test connectivity to the network share.



And here's where I found that info, its the guide I use: Rasp Pi NAS






share|improve this answer


























  • When I type sudo smbpasswd -a backups it ask me twice for SMB password but after that, it return me "Failed to add entry for user backups."

    – Frink Léo
    Feb 22 at 11:59











  • Oops, sorry, I had a typo. Should have said sudo smbpasswd -a username. I was editing this another source to be more generic and suitable to the scenario.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Because you are now adding the user as a samba user. Previous step creates the user.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Okey but now Windows say me "access denied", username and password are correct but acces is denied. I'm almost sure that it's a problem from the smb.conf file

    – Frink Léo
    Feb 22 at 15:55













  • What's you config file look like?

    – SiXandSeven8ths
    Feb 22 at 16:10
















0














Going out on a limb here, but it sounds like you added pi as a samba user without setting pi up as a samba user.



What you should have done:





  • Add in a user that can access the Pi’s samba shares. Make an account with the username username and the password password. You can make your username and password whatever you wish. To do so type the following commands:



    sudo useradd username -m -G users



    sudo passwd username




  • You’ll be prompted to type in the password twice to confirm. After confirming the password, it’s time to add “username” as a legitimate Samba user. Enter the following command (this is what I think you did):



    sudo smbpasswd -a username



  • Enter the password for the account when prompted.



You can now hop onto any Samba-capable machine on your network and test connectivity to the network share.



And here's where I found that info, its the guide I use: Rasp Pi NAS






share|improve this answer


























  • When I type sudo smbpasswd -a backups it ask me twice for SMB password but after that, it return me "Failed to add entry for user backups."

    – Frink Léo
    Feb 22 at 11:59











  • Oops, sorry, I had a typo. Should have said sudo smbpasswd -a username. I was editing this another source to be more generic and suitable to the scenario.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Because you are now adding the user as a samba user. Previous step creates the user.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Okey but now Windows say me "access denied", username and password are correct but acces is denied. I'm almost sure that it's a problem from the smb.conf file

    – Frink Léo
    Feb 22 at 15:55













  • What's you config file look like?

    – SiXandSeven8ths
    Feb 22 at 16:10














0












0








0







Going out on a limb here, but it sounds like you added pi as a samba user without setting pi up as a samba user.



What you should have done:





  • Add in a user that can access the Pi’s samba shares. Make an account with the username username and the password password. You can make your username and password whatever you wish. To do so type the following commands:



    sudo useradd username -m -G users



    sudo passwd username




  • You’ll be prompted to type in the password twice to confirm. After confirming the password, it’s time to add “username” as a legitimate Samba user. Enter the following command (this is what I think you did):



    sudo smbpasswd -a username



  • Enter the password for the account when prompted.



You can now hop onto any Samba-capable machine on your network and test connectivity to the network share.



And here's where I found that info, its the guide I use: Rasp Pi NAS






share|improve this answer















Going out on a limb here, but it sounds like you added pi as a samba user without setting pi up as a samba user.



What you should have done:





  • Add in a user that can access the Pi’s samba shares. Make an account with the username username and the password password. You can make your username and password whatever you wish. To do so type the following commands:



    sudo useradd username -m -G users



    sudo passwd username




  • You’ll be prompted to type in the password twice to confirm. After confirming the password, it’s time to add “username” as a legitimate Samba user. Enter the following command (this is what I think you did):



    sudo smbpasswd -a username



  • Enter the password for the account when prompted.



You can now hop onto any Samba-capable machine on your network and test connectivity to the network share.



And here's where I found that info, its the guide I use: Rasp Pi NAS







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 22 at 14:19

























answered Feb 21 at 22:42









SiXandSeven8thsSiXandSeven8ths

279416




279416













  • When I type sudo smbpasswd -a backups it ask me twice for SMB password but after that, it return me "Failed to add entry for user backups."

    – Frink Léo
    Feb 22 at 11:59











  • Oops, sorry, I had a typo. Should have said sudo smbpasswd -a username. I was editing this another source to be more generic and suitable to the scenario.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Because you are now adding the user as a samba user. Previous step creates the user.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Okey but now Windows say me "access denied", username and password are correct but acces is denied. I'm almost sure that it's a problem from the smb.conf file

    – Frink Léo
    Feb 22 at 15:55













  • What's you config file look like?

    – SiXandSeven8ths
    Feb 22 at 16:10



















  • When I type sudo smbpasswd -a backups it ask me twice for SMB password but after that, it return me "Failed to add entry for user backups."

    – Frink Léo
    Feb 22 at 11:59











  • Oops, sorry, I had a typo. Should have said sudo smbpasswd -a username. I was editing this another source to be more generic and suitable to the scenario.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Because you are now adding the user as a samba user. Previous step creates the user.

    – SiXandSeven8ths
    Feb 22 at 14:21











  • Okey but now Windows say me "access denied", username and password are correct but acces is denied. I'm almost sure that it's a problem from the smb.conf file

    – Frink Léo
    Feb 22 at 15:55













  • What's you config file look like?

    – SiXandSeven8ths
    Feb 22 at 16:10

















When I type sudo smbpasswd -a backups it ask me twice for SMB password but after that, it return me "Failed to add entry for user backups."

– Frink Léo
Feb 22 at 11:59





When I type sudo smbpasswd -a backups it ask me twice for SMB password but after that, it return me "Failed to add entry for user backups."

– Frink Léo
Feb 22 at 11:59













Oops, sorry, I had a typo. Should have said sudo smbpasswd -a username. I was editing this another source to be more generic and suitable to the scenario.

– SiXandSeven8ths
Feb 22 at 14:21





Oops, sorry, I had a typo. Should have said sudo smbpasswd -a username. I was editing this another source to be more generic and suitable to the scenario.

– SiXandSeven8ths
Feb 22 at 14:21













Because you are now adding the user as a samba user. Previous step creates the user.

– SiXandSeven8ths
Feb 22 at 14:21





Because you are now adding the user as a samba user. Previous step creates the user.

– SiXandSeven8ths
Feb 22 at 14:21













Okey but now Windows say me "access denied", username and password are correct but acces is denied. I'm almost sure that it's a problem from the smb.conf file

– Frink Léo
Feb 22 at 15:55







Okey but now Windows say me "access denied", username and password are correct but acces is denied. I'm almost sure that it's a problem from the smb.conf file

– Frink Léo
Feb 22 at 15:55















What's you config file look like?

– SiXandSeven8ths
Feb 22 at 16:10





What's you config file look like?

– SiXandSeven8ths
Feb 22 at 16:10


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1408198%2fnas-with-raspberry-pi-how-to-connect-through-windows%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Index of /

Tribalistas

Listed building