Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba... help?!?!?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 2:48 am    Post subject: Samba... help?!?!? Reply with quote

I'm sooooo lost. I can't figure out how to configure and set up samba!!! I emerged samba, cups, readline, pam, net-fs/samba, and net-print/hplip. I stared at this page: http://www.gentoo.org/doc/en/quick-samba-howto.xml Please help?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Mar 26, 2010 4:06 am    Post subject: Reply with quote

Gonna hafta describe some problem in detail before anyone can help ya.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 2:19 pm    Post subject: Reply with quote

I apoligize, yesterday, when I was posting, my mind was going bye-bye. In short, I had been working on Gentoo for most of the day and I was losing it. I guess I am mainly getting lost with how to set up the conf file. I know certain things that have to be like the workgroup but, other than that I can't make heads or tails of it.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Mar 26, 2010 2:54 pm    Post subject: Reply with quote

Well, let's start with what you want to do. Are you trying to share storage on a Linux machine or use storage on a Windows machine?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 5:07 pm    Post subject: Reply with quote

I have a couple other Windows machine on the network. I also have a network printer and a printer that is running off of one of the other computers. I would like to share the files for this box so the Windows machines have access but have to input a password. I am hardwired to my network.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 26, 2010 5:16 pm    Post subject: Reply with quote

I used mostly this HOWTO at first. It did help me to get a basic understanding and a working basic samba with networked printing up and running.

The entire HOWTO is a great reference for more specialized deployments, and there are plenty of example configurations too.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 8:25 pm    Post subject: Reply with quote

Looking at the link, it seems to be very helpfull. Thankyou very much. But, the line "comment = Data" what does that do?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 26, 2010 8:34 pm    Post subject: Reply with quote

http://www.samba.org/samba/docs/using_samba/appb.html wrote:
comment = string

Allowable values: string

Default: NULL

Sets the comment corresponding to a share. The comment appears in places such as a net view listing or through the Network Neighborhood. See also the server string configuration option.


As in:
Code:
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No


Last edited by Mike Hunt on Fri Mar 26, 2010 8:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 8:40 pm    Post subject: Reply with quote

Ok, how do I install my printer using the CUPS Web interface?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 26, 2010 8:44 pm    Post subject: Reply with quote

The Gentoo Samba3/CUPS HOWTO you referred to previously is a great place to start.

Get your samba working first, then add the printing support, etc...

In your browser go to http://localhost:631 for the CUPS Web interface.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 9:16 pm    Post subject: Reply with quote

I cant connect to that webpage
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Mar 26, 2010 9:29 pm    Post subject: Reply with quote

If you've installed cups, then it means you have not yet started cupsd. Do the following
Code:
/etc/init.d/cupsd start
to get it going now, and
Code:
rc-update add cupsd default
to ensure that it'll be started every time you start your system. These steps are in the guide, by the way. :P

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 10:09 pm    Post subject: Reply with quote

I have a Windows network. do I need to change /etc/nsswitch.conf in any way to adjust for that?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 26, 2010 10:14 pm    Post subject: Reply with quote

That is also in the guide:
    Code Listing 4.4: Editing /etc/nsswitch.conf
Code:
# nano -w /etc/nsswitch.conf
(Edit the hosts: line)
hosts: files dns wins
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 10:27 pm    Post subject: Reply with quote

I did see that line part of the guide and thought about saying "besides 'wins' in the 'hosts' line" in my last post.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Fri Mar 26, 2010 10:29 pm    Post subject: Reply with quote

So then, I should have my network all set up. How do I browse my network and access other computers?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Mar 26, 2010 10:36 pm    Post subject: Reply with quote

That's in the HOWTO that I suggested:
Code:
root# smbclient //<server>/<user> -U<user>%secret
OS=[UNIX] Server=[Samba-3.0.20]
smb: \> dir
.                              D        0  Sat Jun 21 10:58:16 2003
..                             D        0  Sat Jun 21 10:54:32 2003
Documents                      D        0  Fri Apr 25 13:23:58 2003
DOCWORK                        D        0  Sat Jun 14 15:40:34 2003
OpenOffice.org                 D        0  Fri Apr 25 13:55:16 2003
.bashrc                        H     1286  Fri Apr 25 13:23:58 2003
.netscape6                    DH        0  Fri Apr 25 13:55:13 2003
.mozilla                      DH        0  Wed Mar  5 11:50:50 2003
.kermrc                        H      164  Fri Apr 25 13:23:58 2003
.acrobat                      DH        0  Fri Apr 25 15:41:02 2003

      55817 blocks of size 524288. 34725 blocks available
smb: \> q


Please follow the Guides and HOWTOs carefully. :)
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sat Mar 27, 2010 2:56 pm    Post subject: Reply with quote

Man...SAMBA is IMPOSSIBLE to set up man!...I quit!...I gave it up! The Windows network is itself buggy (you gotta re---boot every time, and at time re--install if you do the smallest change), then there comes problems with the configuration...that too by hand and with the tons of options that SAMBA offers!

Instead I install Unix servers for Windows on the windows compromised machines and do file sharing though NFS.

Clean, simple, secure.
_________________
My blog
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Sat Mar 27, 2010 3:02 pm    Post subject: Reply with quote

Ok, I am having troubles. My workgroup is called AV1611. I have a Verizon FIOS router. I am connected via CAT5 cables directly. I cant seem to get Samba set right.

I put in the command to browse the network and got this error output:

Code:
Connection to AV1611 failed (Error NT_STATUS_BAD_NETWORK_NAME)


what do you need to know about my network? I cant sem to get it set right. Maybe you guys can help.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Sat Mar 27, 2010 3:35 pm    Post subject: Reply with quote

I gained some new information about my network. In the smb.conf file, the line "server string" do I put my DNS server name in there? Mind you, this machine is not the server for the network. The router it the server. Am I supposed to put that name instead of "Smb Server %v"
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Sat Mar 27, 2010 10:02 pm    Post subject: Reply with quote

i have advanced greatly in setting up of Samba so I may not need much more help. You can nix those last two posts because I have gotten past that.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Mar 27, 2010 11:13 pm    Post subject: Reply with quote

Good. That's what I was talking about. And the big plus is that you have learned much more. :)
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Sun Mar 28, 2010 12:18 am    Post subject: Reply with quote

Ok, I have gotten to the point where I can be seen by the other computers in the network. The problem I am having is that I can't figure out how to actually browse the network. Also I dont have a WINS server. The server for the network its the router, a DNS server. How do I set samba for that?
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
goldfish777
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2010
Posts: 79

PostPosted: Sun Mar 28, 2010 6:09 pm    Post subject: Reply with quote

I may have the DNS thingy set right. I can ping the machines in my network and they can ping me. I cant figure out how to access the other computers in the network. PLEASE HELP! Im lost.
_________________
Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Mar 28, 2010 6:50 pm    Post subject: Reply with quote

Dude, when things don't work, you've got to give details.
  • For mounting Windows or Samba shares under Linux, from the Gentoo Samba3/CUPS HOWTO, have you tried the instructions under Code Listing 5.6: Mounting a Windows/Samba share?
  • For mounting a Samba share from Windows, have you tried opening Explorer and clicking on Tools/Map Network Drive (and following normal Windows procedure from there)?
If not, then please try those things (a gentle suggestion to RTFM might be in order). If so, then tell us what happened!

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum