LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-01-2007, 10:17 PM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
SAMBA setup on CENTOS and UBUNTU


Hey guys i just want to ask i have 2 LINUX box in my network centos and ubuntu. i both installed at the same time and now i want to network them with my windows box. in ubuntu there is no problem, i think samba is enabled by default and configurations works fine, i can view and access all windows box in the network. however in my centos i enabled samba manually and i can view all windows and linux box in my network but i cant access the windows box'es. i thought this could be a problem with the samba configurations so i tried to copy the smb.conf of ubuntu to centos but same problem.
 
Old 10-02-2007, 01:31 AM   #2
combatwombat
Member
 
Registered: Apr 2003
Location: Hastings, Hawkes Bay, NZ
Distribution: Ubuntu Gutsy Gibbon
Posts: 53

Rep: Reputation: 15
9 times outta 10 it's permissions. Check the logs on Windows and Centos (/var/log/samba?)
 
Old 10-03-2007, 09:23 PM   #3
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
I checked the windows security logs and it says that my Centos box cant connect because of bad username and password. In my Centos when i connect to windows it didnt ask for any username or password just an error messaying saying access denied.

But how come in my ubuntu im not presented with this kind of problem....
 
Old 10-03-2007, 10:50 PM   #4
combatwombat
Member
 
Registered: Apr 2003
Location: Hastings, Hawkes Bay, NZ
Distribution: Ubuntu Gutsy Gibbon
Posts: 53

Rep: Reputation: 15
I don't use Centos, but here's some googled help:
http://www.centos.org/docs/5/html/De...-programs.html
http://wiki.centos.org/TipsAndTricks/WindowsShares

I find Ubuntu/Debian to be much better due to the whole DEB vs RPM software management scenario. (Had too many issues with dependency hell on Redhat)
 
Old 10-03-2007, 10:57 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
COmbatwombat, that's why you use yum instead - sorts dependencies for you.

It could be an SELinux issue (I don't see quite why, but it's always my starting point in redhat derivatives).

Before trying to connect, typ

setenforce 0

as root and then try.


Long shot, but worth a try.
 
Old 10-03-2007, 11:08 PM   #6
Astol
Member
 
Registered: Aug 2007
Location: Perth, Australia
Distribution: RHEL 5 + 4.5, Fedora
Posts: 88

Rep: Reputation: 15
check your shares are 777 permissions.
 
Old 10-04-2007, 05:05 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
What is it that you are doing? Using the windows a a server with Linux as a client or the other way round?

What is the output of smbclient -L //servername/share -Uusername%password? Of testparm?
 
Old 10-04-2007, 07:19 PM   #8
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
Quote:
It could be an SELinux issue (I don't see quite why, but it's always my starting point in redhat derivatives).

Before trying to connect, typ

setenforce 0

as root and then try.
ok i will try this...


Quote:
check your shares are 777 permissions.
no... my problem is not share permission on linux but i cant access windows from my linux box (centos).


Quote:
What is it that you are doing?
i am trying to let windows and linux be able to share files. so far i have enabled samba on my linux box and my windows can access specified shares in my linux box. but my linux box cant access my windows box... im using nautilus to access my windows box and it says access denied.
 
Old 10-04-2007, 07:45 PM   #9
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Are you sure that your username and password are identical on XP and CentOS?

Last edited by jay73; 10-04-2007 at 07:49 PM.
 
Old 10-04-2007, 08:46 PM   #10
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
no they are not identical, although i also have thought about that and since my windows box has an account in my linux box i use it to log on my linux box and access my windows box but still same problem.
 
Old 10-05-2007, 09:08 AM   #11
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
What are the permissions on your mountpoint under Linux? Bear in mind that Linux permissions are ADDED to any permissions existing on the windows box. In other words, if your user doesn't have sufficient rights, he won't be able to access windows even if you set its doors wide open.

And of course, you username/password needs to be identical to that on the windows box.
 
Old 10-05-2007, 07:04 PM   #12
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
Quote:
What are the permissions on your mountpoint under Linux?
where can i see this?
 
Old 10-05-2007, 10:37 PM   #13
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
you can get that information from a terminal. For example, if you have a sambamount directory right under /, you would use:

ls -l /sambamount

check the rwxrwxrwx part; if it says root root and it hasn't got rwxrwxr-x, that should explain your problem.

It may be interesting to make yourself the owner:

chmown -R username.username /sambamount

That will give you full read and write permissions. Or you can simply change the permissions.
 
Old 10-07-2007, 10:50 PM   #14
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
oh ok.... actually im not using any mount...

i was just wondering is it possible that samba cant view windows clients because my centos box doesnt support NTFS?
 
Old 10-08-2007, 01:29 AM   #15
combatwombat
Member
 
Registered: Apr 2003
Location: Hastings, Hawkes Bay, NZ
Distribution: Ubuntu Gutsy Gibbon
Posts: 53

Rep: Reputation: 15
NTFS support hasn't anything to do with it, unfortunately.
Are you share that you have enabled shares on the XP box? Rightclick the folder, choose sharing & security, enable the share and share name, and write access if required.

If you haven't enabled Simple File Sharing in XP then it is trying to enforce strict permissions.

I'm assuming that it's XP; is it? Also, have you turned off it's firewall for File and Printer Sharing from Controll Panel (if it's XP SP2), cos' that blocks SMB packets.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu edgy eft samba setup!? erat123 Linux - Software 1 11-26-2006 07:42 PM
LXer: The Perfect Setup - CentOS 4.4 LXer Syndicated Linux News 0 10-12-2006 10:03 AM
setup AWstats on CENTOS(linux) bradsmiley Linux - Server 5 08-30-2006 03:04 PM
setup PHPMYADMIN on CENTOS bradsmiley Linux - Server 1 08-30-2006 03:10 AM
Initial setup of Cyrus on CentOS 4.2 jjrowan cAos 0 01-13-2006 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration