LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-04-2005, 05:16 PM   #1
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Rep: Reputation: 15
Samba - access denied on windows


I recently configured samba for my slackware 10.1 fileserver. I have a few shares and when I try to write to any of the shares it says that access is denied.

I heard that this error could be cause by ms-chap not be enabled. I couldn't figure out how to enable it in samba. I do not want to send my password plain text. The user name and password is the same on the server and on my windows xp computer.

The server is running Slackware 10.1 and my PC is Windows XP Pro SP2.

this is my smb.conf:

#======================= Global Settings =====================================
[global]

workgroup = WORKGROUP
server string = "Slackware Linux 10.1"
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes

[Files]
comment = Files
path = /files
public = yes
writable = yes

[backup-jeff]
comment = Jeff's Backup Folder
path = /mnt/hdb/backup-jeff
public = no
browseable = yes
writable = yes
valid users = jeff
 
Old 09-05-2005, 08:46 AM   #2
MaTrIx709
Member
 
Registered: May 2004
Location: UK
Distribution: Debian Testing
Posts: 70

Rep: Reputation: 15
Is the directory that you share read/writeable by the correct users?
 
Old 09-05-2005, 09:58 AM   #3
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
Yeah it is. I can even take off the user restriction and it still wont work.
 
Old 09-06-2005, 09:25 PM   #4
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
Anyone have an idea?
 
Old 09-07-2005, 01:35 PM   #5
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
just to let anyone know if they have this problem..

i forgot to do a chmod 777 /path/to/directory

once i did the chmod it worked and i could write to it.
 
Old 09-07-2005, 03:11 PM   #6
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Personally, I'm glad you posted the answer for later searches.
 
Old 10-30-2009, 06:41 PM   #7
littlebear91
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Which folder do you give the 777 to?

/usr/share/samba/drivers
/usr/share/samba
/var/spool/samba
/etc/samba

I'm still stuck on Access_Denied
 
Old 12-21-2009, 03:30 PM   #8
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
you do chmod 777 on the directory that is being shared. i'm not quite sure how secure this is as you're giving all users who log onto the system locally access to this directory.
 
Old 12-22-2009, 03:08 PM   #9
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Check for SELinux errors/messages in dmesg.
 
Old 12-22-2009, 03:13 PM   #10
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX
Posts: 565

Rep: Reputation: 57
Personally I would not chmod 777 cus that gives access to everyone. I would chown it to the respected users or group. Then you can add a 755 permission on it and add users to a group to access.
 
Old 03-13-2010, 07:17 AM   #11
pdxlooie
LQ Newbie
 
Registered: Dec 2005
Location: Naugatuck CT USA
Distribution: Slackware 13, Ubuntu 8.04
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by time112852 View Post
you do chmod 777 on the directory that is being shared. i'm not quite sure how secure this is as you're giving all users who log onto the system locally access to this directory.
Hello,

The first thing to look at is the file permissions for the file you are trying to access. If the permissions are, say, 600, then it won't be accessible by anyone other than its owner. Over Samba, that probably won't be you. In my experience, the file must be world-readable (at a minimum) to be accessible over Samba. This seems to be mostly problematic for downloaded files, as the browser may set the permissions to 600 when it saves the file.

Thanks.

mp
 
Old 06-04-2010, 10:08 AM   #12
Zero187
Member
 
Registered: May 2009
Posts: 30

Rep: Reputation: 15
I had this same problem, it ended up I had a script ran by root that would backup my files to the share. The files would always say "access denied" no matter what permissions I gave (I tried 777). Ended up root was the owner, and it wouldn't let me access them in the samba share until I changed the owner using "chown share-user ./*"

once the owner of the files was the same as the samba user, I was able to access everything.
 
  


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/swat access denied bob_man_uk Linux - Software 2 10-19-2005 03:12 AM
Samba - access denied on windows suco Linux - Software 6 09-26-2005 10:30 PM
Samba - Access denied aikempshall Linux - Networking 22 08-24-2004 06:50 AM
Access denied XP samba shares djtsa Linux - Software 0 10-02-2003 06:26 AM
windows xp and samba access denied eradiate Linux - Networking 4 06-01-2003 09:58 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration