Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-10-2008, 11:27 PM
|
#1
|
Member
Registered: Nov 2002
Location: Malaysia
Posts: 36
Rep:
|
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
|
|
|
08-10-2008, 11:41 PM
|
#2
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
08-11-2008, 12:31 AM
|
#3
|
Member
Registered: Nov 2002
Location: Malaysia
Posts: 36
Original Poster
Rep:
|
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
|
|
|
08-12-2008, 03:05 AM
|
#4
|
Member
Registered: Nov 2002
Location: Malaysia
Posts: 36
Original Poster
Rep:
|
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
|
|
|
08-19-2008, 11:14 AM
|
#5
|
Member
Registered: Jul 2003
Location: Scotland
Posts: 34
Rep:
|
Hi
What are the unix permissions for the /departments folder ?
Are you sure that the samba process has permission to write to
it?
J.
|
|
|
08-20-2008, 05:22 AM
|
#6
|
Member
Registered: Aug 2008
Posts: 52
Rep:
|
run the following command
chmod -R 777 /departments
then testparm
|
|
|
All times are GMT -5. The time now is 08:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|