Jump to content

I am a complete noob to Linux so please point out my mistakes...

 

I installed samba on Ubuntu server using this guide here: https://tutorials.ubuntu.com/tutorial/install-and-configure-samba#3

 

I got to the end and tried to connect on a windows machine. I was able to see the shared folder, but when i tried to open it it says access denied after I typed in the username and password. I set it up to use the user that the Ubuntu setup creates at installation, although i also tried using root but it did the same thing.

 

I have no idea what i'm doing, could somebody point me in the right direction?

Link to comment
https://linustechtips.com/topic/945988-problem-accessing-smb-share-on-windows/
Share on other sites

Link to post
Share on other sites

Did you successfully set up the samba account with "sudo smbpasswd -a username"? Also, the previous page of that tutorial instructs you to create the samba share within the home directory of a user. Is that the same user that you used for smbpasswd?

 

Finally, the samba login is the password that you entered with smbpasswd, not the system login for the same user.

Link to post
Share on other sites

2 minutes ago, badreg said:

Did you successfully set up the samba account with "sudo smbpasswd -a username"? Also, the previous page of that tutorial instructs you to create the samba share within the home directory of a user. Is that the same user that you used for smbpasswd?

 

Finally, the samba login is the password that you entered with smbpasswd, not the system login for the same user.

maybe that's the issue, the share is not in the user folder, its on a different disk (mounted at /mnt/sda1/)

Link to post
Share on other sites

5 minutes ago, MineParker101 said:

maybe that's the issue, the share is not in the user folder, its on a different disk (mounted at /mnt/sda1/)

You need to either change the owner of the directory and all the files and directories under it to match the username/group of smbd, or you need to change all of their permissions so that all users can read, write and execute them. If you use the latter option, you'll need to add in the samba share-configuration for samba to use create-mask of 0666 and directory-mask of 0777 when creating files (create mask = 0666 and directory mask = 0777 in /etc/samba/smb.conf in the appropriate share-section)

 

Hand, n. A singular instrument worn at the end of the human arm and commonly thrust into somebody’s pocket.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×