LinuxQuestions.org
Visit Jeremy's Blog.
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 08-10-2008, 10:27 PM   #1
klmn1
Member
 
Registered: Nov 2002
Location: Malaysia
Posts: 36

Rep: Reputation: 15
Samba shared folder


Hello,

I need some assistance with the Samba server setup and to enable the file sharing with a Win XP PC. The followings described with what I have done on my Linux box;

I had added a new hard drive onto my server as /dev/sdb and has created a directory as 'departments' as the mount for this drive. I had also created few more sub-folders within departments such as it, finance & etc for file sharing purpose.

In the Samba configurations I had configure the correct directory path and also create & enable the folder share based on the respective sub-folders available in departments. Somehow I am not able to browse nor to view these folders from my Win XP PC though I am able to see my server was listed in My Network Places.

I wonder if I had missed any configuration within Samba?

Thanks
law
 
Old 08-10-2008, 10:41 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
The easiest way to diagnose these issues is usually to just post the smb.conf file, so we can see what exactly is going on.

Failing any misconfiguration in Samba, the next likely issue would be permissions on the actual drive.
 
Old 08-10-2008, 11:31 PM   #3
klmn1
Member
 
Registered: Nov 2002
Location: Malaysia
Posts: 36

Original Poster
Rep: Reputation: 15
Alright, here's my SMB.conf

# Global parameters
[global]
workgroup = APMAE2
netbios name = LINUX2
server string = Red Hat 8.0
security = DOMAIN
encrypt passwords = Yes
update encrypted = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain logons = Yes
domain master = True
dns proxy = No
nt acl support = No
printing = lprng

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[departments]
path = /departments
read only = No

[it]
path = /departments/it
read only = No
 
Old 08-12-2008, 02:05 AM   #4
klmn1
Member
 
Registered: Nov 2002
Location: Malaysia
Posts: 36

Original Poster
Rep: Reputation: 15
Well, I have the above problem fixed and it seems the Linux firewall is causing this to me. Though I am able to login using my Samba credentials and accessing the folders accordingly but I am not able to write on all these folders.

Whenever I try to either save a file or write a file to these folders, I am receiving an message indicating 'Access has been denied'. All these all been done from my Win XP PC.

I do not seems to encounter the same problem when I do the same from the Linux box itself. Any ideas what could be wrong again?

Thanks
law
 
Old 08-19-2008, 10:14 AM   #5
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Hi

What are the unix permissions for the /departments folder ?
Are you sure that the samba process has permission to write to
it?

J.
 
Old 08-20-2008, 04:22 AM   #6
Interflex
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
run the following command
chmod -R 777 /departments

then testparm
 
  


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
Samba password protected shared Folder Mrpeepers310 Linux - Networking 5 09-18-2010 10:04 AM
shared folder/file in ubuntu samba pdelcast Linux - Server 11 04-24-2008 11:38 AM
winblows ask for pass to shared samba folder? tommytomthms5 Linux - Newbie 16 09-09-2007 05:00 AM
I can see SAMBA shared folder in XP but can't access it vishivishi Linux - Networking 6 08-30-2006 01:13 AM
how do i connect to a windows shared folder using samba? winstone5000 Linux - Networking 1 12-19-2005 10:38 AM

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

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