LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help the newbie to samba make it work. Shares are visible, connecting can not find.. (https://www.linuxquestions.org/questions/linux-networking-3/help-the-newbie-to-samba-make-it-work-shares-are-visible-connecting-can-not-find-612103/)

Mysticle31 01-08-2008 05:36 PM

Help the newbie to samba make it work. Shares are visible, connecting can not find..
 
I've gotten samba set up and finally gotten the shares visible to other Ubuntu machines and my windows machine.

However when I connect to them I get a classic file not found message in both OSs, however they word it.

I have a sneaking suspicion that this problem is a problem with my permissions on the computer sharing the shares. However, I don't know if that is correct much less how to remedy.

This is my smb.conf. The shares in the home folder (Documents, Music, Pictures..etc) are all the linux version of "shortcuts" to the actual directories that exist on /media/data. I assume I can do that. What are the linux versions of "shortcuts" called. (Ex. Navigating to /home/steve/documents is the same as navigating to /media/data/documents)

Quote:

[global]
workgroup = LAN
netbios name = Desktop
restrict anonymous = no
security=share

[Documents]
case sensitive = no
guest ok = yes
path = /home/steve/Documents
read only = no

[Examples]
case sensitive = no
guest ok = yes
path = /home/steve/Examples
read only = no

[Music]
case sensitive = no
guest ok = yes
path = /home/steve/Music
read only = no

[Pictures]
case sensitive = no
guest ok = yes
path = /home/steve/Pictures
read only = no

[Videos]
case sensitive = no
guest ok = yes
path = /home/steve/Videos
read only = no

[Home]
case sensitive = no
guest ok = yes
path = /home/steve
read only = no

[Movies Drive]
case sensitive = no
guest ok = yes
path = /media/movies
read only = no

[Linux Installs]
case sensitive = no
guest ok = yes
path = /media/data/Linux Installs
read only = no

[Windows Installs]
case sensitive = no
guest ok = yes
path = /media/data/Windows Installs
read only = no

David1357 01-08-2008 06:22 PM

Quote:

Originally Posted by Mysticle31 (Post 3016031)
This is my smb.conf.

You probably want to put the paths in double quotes if you need spaces in them.
Quote:

[Linux Installs]
case sensitive = no
guest ok = yes
path = "/media/data/Linux Installs"
read only = no

[Windows Installs]
case sensitive = no
guest ok = yes
path = "/media/data/Windows Installs"
read only = no
To make sure that is correct, run "testparm" to see if there any other errors in your "smb.conf" file.

TheLateJC 01-08-2008 07:10 PM

Don't forget that file permissions on the server also matter. The connecting user(s) need to have read access to the files and directories to see them.

lsteacke 01-10-2008 12:05 PM

The "shortcuts" you are referring to are most likely called symbolic links in Linux. However from what I can see this looks like these are shortcuts to files that exist on another machine? /media/data/documents exists on what box?

Mysticle31 01-10-2008 04:57 PM

Yes, symbolic links, that's what it was. I remember reading about them before I "used" them. I didn't remember what they were called.

Connecting users meed access? So what means that only two people can have accounts? Obviously I want access on the actual PC, so I (steve) needs to be the owner and have read and write access. Bob, however, I just want to read. Sam, however, I want to read and write. All I have is Owner, Group, and Others.

Another interesting thing is that I can not create a samba password. As soon as I do anything with smbpasswd I get a segmentation fault.

TheLateJC 01-10-2008 11:43 PM

Well you are going to need smbpasswd to create smb passwords for the users. But first be sure that you have created the accounts on the server that hosts samba, one for bob, steve, and sam.

You can have that security setup with UGO (User, Group, Org/Other) on the shared directories , you (steve) are the U and you have rwx on the directories, put Sam into the G and give the G rwx, and poor old bob is not in the G, so give the O r-x.

Be purist in fact and make the owner root, and just you and steve are in the G with rwx.

So you have the user accounts and have set permissions on the shared folders, you have to make smbpasswd go otherwise no-one will be able to connect.

`smbpasswd -a steve` will create the account steve and you should be prompted for the password.

Once you have set it up you should be able to connect.

While getting this to go, make yourself and admin user on the share - I can't remember the option - it's admin = or something. It's in the man page for smb.conf


All times are GMT -5. The time now is 10:17 PM.