LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-08-2008, 05:36 PM   #1
Mysticle31
Member
 
Registered: Nov 2007
Location: California
Distribution: Xubuntu 7.10 Gutsy
Posts: 77

Rep: Reputation: 15
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
 
Old 01-08-2008, 06:22 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Mysticle31 View Post
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.
 
Old 01-08-2008, 07:10 PM   #3
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
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.
 
Old 01-10-2008, 12:05 PM   #4
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
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?
 
Old 01-10-2008, 04:57 PM   #5
Mysticle31
Member
 
Registered: Nov 2007
Location: California
Distribution: Xubuntu 7.10 Gutsy
Posts: 77

Original Poster
Rep: Reputation: 15
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.
 
Old 01-10-2008, 11:43 PM   #6
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Connecting to samba shares mcgirvanmedia Linux - Software 5 01-03-2007 09:53 PM
Samba XP shares: Only first 36 folder visible in Konqueror sugna Linux - Software 1 07-04-2005 07:59 AM
Samba not connecting to windows shares, help pls john_d13 Linux - Software 0 12-18-2004 12:27 AM
samba and connecting to shares citrus Linux - Software 1 03-17-2004 02:51 PM
samba connecting to linux shares hangs jkahlich Linux - Software 3 10-17-2001 02:55 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration