LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-18-2012, 01:16 AM   #1
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Rep: Reputation: 3
Samba Server not Working


hi,

i have created samba users and also shared directories for the specific user but when i connect from client machine it shows me the shared directories and when i try to open it, it asks me for authentication but after giving proper username and password i am not able to access that directory.
 
Old 10-18-2012, 01:41 AM   #2
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
Well, at first check your permissions of that directory.
Code:
ls -l
 
Old 10-18-2012, 01:46 AM   #3
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
directory permission is 755
 
Old 10-18-2012, 04:59 AM   #4
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
is your problem solve on giving permission
 
Old 10-18-2012, 05:04 AM   #5
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
No its not solved yet.
 
Old 10-18-2012, 06:48 AM   #6
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
tell me your fileserver architecture then only i can guide u..

---------- Post added 10-18-12 at 06:48 AM ----------

well i knew it that only changing permission issue will not resolved...
 
Old 10-18-2012, 06:57 AM   #7
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
server is Cent os 5.7 with the LAMP environment.
all the firewalls are disabled.
configured samba server and created users for that.

Want to share directory with specific users only.

Last edited by dushyantgohil; 10-18-2012 at 06:58 AM.
 
Old 10-18-2012, 07:13 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by dushyantgohil View Post
server is Cent os 5.7 with the LAMP environment.
all the firewalls are disabled.
configured samba server and created users for that.

Want to share directory with specific users only.
I donot see any relevant important details provided by you in all the posts. You need to be more descriptive for the issue with all the details to save yours and ours time

Show your smb.conf
Check and show log messages for any related info
 
Old 10-18-2012, 07:16 AM   #9
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
Quote:
Originally Posted by dushyantgohil View Post
server is Cent os 5.7 with the LAMP environment.
all the firewalls are disabled.
configured samba server and created users for that.

Want to share directory with specific users only.


u did not mentioned how you had added your client with server and your client have windows operating system or else.
 
Old 10-18-2012, 07:58 AM   #10
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
i have created simple users and added in samba using

smbpasswd -a username

other client machines are having ubuntu 12.04, windows 7 and mountain lion
 
Old 10-18-2012, 08:43 AM   #11
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
hi dushyant
the samba share u are accessing with the samba user ,is that user have appropriate rights to that share?
have u enabled the user?
ie smbpasswd -e userame.
 
Old 10-18-2012, 01:00 PM   #12
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

Rep: Reputation: 59
Ok, can you tell us what exacty did you do, what permissions did you set up for your share file, also send output of yours smb.conf
 
Old 10-19-2012, 12:23 AM   #13
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Nikosis View Post
Ok, can you tell us what exacty did you do, what permissions did you set up for your share file, also send output of yours smb.conf
hi please read above post i have mentioned all the things
 
Old 10-19-2012, 12:24 AM   #14
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by zafar_dandoti View Post
hi dushyant
the samba share u are accessing with the samba user ,is that user have appropriate rights to that share?
have u enabled the user?
ie smbpasswd -e userame.

hi zafar,

i have created one directory and one user. permission assigned to the directory is 755 so i dont think there is any issue with the permission
 
Old 10-19-2012, 12:25 AM   #15
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
can you tell me how you map windows user to samba server and also ubantu user to samba server. which folder you has mapped with server.beside permission their is one more reason that after getting your reply i can come to conclusion.so reply me .

---------- Post added 10-19-12 at 12:26 AM ----------

post your smb.conf file
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba server not working... adlib69 Linux - Newbie 2 11-22-2006 04:36 PM
NFS and Samba shares not working on MDK10, kernel 2.6.6 server DaneM Linux - Software 1 05-29-2004 08:42 PM
samba working, then installed openSSL and not samba not working hamish Linux - Networking 3 05-17-2004 01:50 PM
My Samba Netbios Name Server is not working ViroMan Linux - Networking 9 04-25-2004 10:52 PM
Write Access on Samba Server not working urzumph Linux - Networking 2 03-04-2004 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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