LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-22-2013, 07:54 AM   #1
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Rep: Reputation: Disabled
Does samba create the group sambashare in Slackware as in ubuntu?


Does samba upon installation create a group 'sambashare' for use in creating shares? If so does this mean that only users who are part of the group sambashare can access the shares? In Ubuntu there is such a group but in Slackware there isn't. I'm assuming this is distribution specific. Is this revelant to how users can access shares?
 
Old 02-22-2013, 09:03 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,828

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
I'm assuming this is distribution specific.
This is a Ubuntu hack. I have never seen it in Slackware.

Quote:
Is this revelant to how users can access shares?
Not sure what you are asking. smb.conf definitions for each share controls what smbusers can access what share.
 
Old 02-22-2013, 11:34 AM   #3
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Original Poster
Rep: Reputation: Disabled
Is samba behavior random? My samba share with a ps2 works sometimes randomly sometimes it works sometimes it doesn't. My configuration options when it works and when it fails to connect are the same.
 
Old 02-22-2013, 12:02 PM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,828

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
Is samba behavior random?
No, you have config problems if it not working consistently.
 
Old 02-22-2013, 12:28 PM   #5
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Original Poster
Rep: Reputation: Disabled
Here are the configuration options in my smb.conf file.
Code:
[global]
guest ok = yes
map to guest = bad password
guest account = curious95
security = share
valid users = 
lanman auth = yes
null passwords = yes

[PS2SMB]
path = /home/curious95/Public/ps2
public = yes
writable = yes
guest ok = yes
read only = no
guest only = yes
I have checked the read and write permissions of /home/curious95/Public/ps2 and they are equal to the ones in the config file. Where am I making the error?
 
Old 02-22-2013, 02:47 PM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,828

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
At a minimum I would add two lines.

Quote:
wins support = Yes
and

Quote:
preferred master = Yes
Do not think for a moment you can fix all the network problems by adding these two lines. Samba config is very complex, you can thank microbucks for that.

At this point I don't have any idea what windoze systems you are trying to connect to your samba server. Each version of windbloze has its own set of problems.

To get this running better, you need to start with basic network configuration. Any server should have a fixed IP address, not one assigned by DHCP, or in windoze speak, 'Automatic'. How have you set the server up?

The 'hosts' file. Have you got correctly updated hosts files on every system you want using file sharing? If not, or you have no idea what I asked, the answer is no. You need to fix that. On a linux system, the file is located at /etc/hosts. This file is the first place the system goes to resolve IP addresses. It is a plain text file on both windoze and linux. Here is a sample from mine.

Quote:
127.0.0.1 localhost
192.168.1.22 Presto presto
192.168.1.23 snail Snail
The first line is the same on all machines, so you can connect to your tcp/ip stack.

The next two lines are form other machines on my network. The IP address; The name I use to connect to it, and an alias name.

If you are running DHCP on your windoze machines, you need to go into your router config, and for each MAC address, assign which IP address gets served to that MAC address. Almost all home routers can do this. You get the MAC address ( the real hardware address of the lan card that is burned in hardware ) in linux by running the command 'ifconfg'.

In windoze, you can try 'ipconfig'; not sure if that works on all versions, or not. Its in the Control Panel; somewhere.

Once the file is built, you can copy it to each system in the network. The only thing you need to change it the external IP address entry for the system you copy it to.

To test this, you use the ping command. You have to be able to ping from any system, to any system, using the names you assign in the hosts file. You may have to boot windoze in order to make the system read the hosts file.

On XP, the hosts file is located in C:/WINDOWS/system32/drivers/etc/hosts. You may have to use the search facility to find it on other versions.

The workgroup name on each system should match. Have you checked that?

MAC addresses on windoze. I tested 'ipconfig /all' and it shows the mac address on XP; also know as "Physical Address". Not sure what works on other versions of windbloze.

See how far you can get.
 
1 members found this post helpful.
Old 02-23-2013, 05:34 AM   #7
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Original Poster
Rep: Reputation: Disabled
Technically, I am trying to connect to a playstation 2 from my Slackware pc. In /etc/hosts is the name I use to connect to it the sharename of the share? Moreover, is the alias what I wish to name it or does it have to have a specific name? The ip address I specified for the ps2 is
Code:
192.168.0.10
here is my /etc/hosts file .
Code:
127.0.0.1 localhost 
192.168.0.10 ps2 ps2
This is under the assumption that the alias and the name I use to connect to it should be equal to the corresponding samba share name. I have also pinged the ps2's ip address from my pc and the connection is shown to be active. However, the connection still fails showing the Network startup error: 300. I have also added this line in my smb.conf file
Code:
hosts allow = 192.168.0.10
I am using open ps2 loader to play my backed up playtation 2 games of my computer's hardisk via samba using a crossover cable between my Slackware pc and my playstation 2. My options are correct as far as this network configuration guide goes. I have been thinking this could be a problem associated with using the security = share option in the smb.conf file as it states in the man page
Code:
Note that it can be very confusing in share-level security as to which UNIX username will eventually be used in granting access
this statement seems to imply some level of randomness although I may have misinterpreted it altogether. My current smb.conf file is as follows:
Code:
[global]
security = user 
valid users = vokevybez
user = vokevybez
lanman auth = yes 
null passwords = yes 
keep alive = 0 

hosts allow = 192.168.0.10
 
os level = 20

[ps2]
path = /home/vokevybez/Public/ps2
create mask = 0777
locking = no 
comment = OPL
read only = no 
smb ports = 445 139 1024
dns proxy = no 
wins support = yes 
preferred master = yes
. One of my previous configurations that worked only once is written below.
Code:
[global]
   guest ok = yes
   map to guest = bad password 
   guest account = vokevybez
   security = share
   valid users =
   lanman auth = yes 
   null passwords = yes

[PS2SMB]
   path = /home/vokevybez/Public/ps2
   public = yes
   writable = yes
   guest ok = yes  
   read only = no 
   guest only = yes
   create mask = 0777
I thank you for taking the time to read my post(s). Hopefully we can come up with a solution.

Last edited by curious95; 02-23-2013 at 05:52 AM. Reason: Added information
 
Old 02-23-2013, 08:35 AM   #8
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,828

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
Technically, I am trying to connect to a playstation 2 from my Slackware pc. In /etc/hosts is the name I use to connect to it the sharename of the share? Moreover, is the alias what I wish to name it or does it have to have a specific name? The ip address I specified for the ps2 is
I don't think you understand what the hosts file is for. It is for resolving a fully qualified hostname to an IP address. That said, it has nothing to do with your shares. An example of a fully qualified host name could be host.somedomain.org. An alias is just a shorter unique name you wish to use, rather than type in the full name; like host1.

Quote:
This is under the assumption that the alias and the name I use to connect to it should be equal to the corresponding samba share name. I have also pinged the ps2's ip address from my pc and the connection is shown to be active. However, the connection still fails showing the Network startup error: 300. I have also added this line in my smb.conf file
The name, and alias can be the same, that will not hurt anything, however, other than finding the IP address of the device, it has nothing to do with the share. Are you able to create hosts files on the PS/2??? Can you ping from the PS/2 to the samba server? These things have to work before you are going to have success with the share connection.

Quote:
hosts allow = 192.168.0.10
This is O.K., but does not guarantee a connection, it just won't block it.

I can not help with open ps2 loader. Never used it, I don't have a PS/2. The network guide looks very reasonable.

Quote:
You should also use security = share if you want to mainly setup shares without a password (guest shares). This is commonly used for a shared printer server. It is more difficult to setup guest shares with security = user, see the map to guest parameter for details.
This is a direct quote from the smb.conf help file. If you try to use a smbuser name, remember you have to create it on the server.
 
1 members found this post helpful.
Old 02-24-2013, 11:02 PM   #9
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
I don't think you understand what the hosts file is for. It is for resolving a fully qualified hostname to an IP address. That said, it has nothing to do with your shares. An example of a fully qualified host name could be host.somedomain.org. An alias is just a shorter unique name you wish to use, rather than type in the full name; like host1.



The name, and alias can be the same, that will not hurt anything, however, other than finding the IP address of the device, it has nothing to do with the share. Are you able to create hosts files on the PS/2??? Can you ping from the PS/2 to the samba server? These things have to work before you are going to have success with the share connection.

This is O.K., but does not guarantee a connection, it just won't block it.

I can not help with open ps2 loader. Never used it, I don't have a PS/2. The network guide looks very reasonable.



This is a direct quote from the smb.conf help file. If you try to use a smbuser name, remember you have to create it on the server.
Well it looks like I have a lot more reading to do. Thanks for your help. I will post on this thread when I come up with a full-proof solution.
 
  


Reply

Tags
samba


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
ubuntu workstations connects to samba pdc but gets no group permissions bobloblian Linux - Server 3 01-08-2011 03:32 PM
Create a Group under an existing Group asadrony Linux - Newbie 5 05-12-2008 08:06 PM
use of samba to create a shared directory in slackware 10.2 geom06005 Linux - Newbie 2 01-27-2007 01:38 PM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
Samba: What group/user is used by Samba to access directories? DJ_Cyberdance Linux - Networking 3 10-04-2003 04:21 AM


All times are GMT -5. The time now is 11:43 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