Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-08-2008, 06:36 PM
|
#1
|
Member
Registered: Nov 2007
Location: California
Distribution: Xubuntu 7.10 Gutsy
Posts: 77
Rep:
|
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
|
|
|
|
01-08-2008, 07:22 PM
|
#2
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Rep:
|
Quote:
Originally Posted by Mysticle31
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.
|
|
|
01-08-2008, 08:10 PM
|
#3
|
Member
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80
Rep:
|
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.
|
|
|
01-10-2008, 01:05 PM
|
#4
|
Member
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99
Rep:
|
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?
|
|
|
01-10-2008, 05:57 PM
|
#5
|
Member
Registered: Nov 2007
Location: California
Distribution: Xubuntu 7.10 Gutsy
Posts: 77
Original Poster
Rep:
|
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.
|
|
|
01-11-2008, 12:43 AM
|
#6
|
Member
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80
Rep:
|
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 11:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|