Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-01-2002, 09:19 AM   #1
LQ Newbie
Registered: Apr 2002
Posts: 2

Rep: Reputation: 0
Permission denied with Samba and Win2k

I have both a Win2k and a 98 machine networked with my Linux box (Redmond Linux Build 44). I have both mounted through smbmount. I have samba 2.2.1a.

When copying files from Win98, I have no problems.

When copying from Win2k, I get the following errors:

cp -R /mnt/mp3 /backup
cp: mp3/80S/Depeche Mode - People Are People.mp3: Permission denied
cp: mp3/80S/Depeche Mode - Speak And Spell.mp3: Permission denied
cp: mp3/80S/Dire Straits - Brothers in arms.mp3: Permission denied
cp: mp3/80S/Dire Straits - Money For Nothing.mp3: Permission denied

Now this error is not on every file in the directory that I try to copy. About 50% copy over fine, the other 50% get this error. This is 100% repeatable (same files pass/fail everytime). And I can find no distinguising characteristics between those that fail and those that do not. Again, these same file work 100% when copying from the Win98 machine.

Anyone have any tips or suggestions?

Thanks in advance.
Old 04-02-2002, 12:20 AM   #2
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66

Rep: Reputation: 15
It sounds like your W2K machine is formatted with an NTFS filesystem. Check the permissions in W2K for those files that don't work.

I would guess that the particular user you are trying to use doesn't have permissions to those files on the NTFS partition.

W98 doesn't support NTFS, so this would explain why it only happens on W2K. It also explains why it only happens to the exact same files over and over again.

To check the NTFS permissions, right-click the file, go to Properties, and check the Security tab.

Let me know what you find out.

Old 04-02-2002, 07:35 AM   #3
LQ Newbie
Registered: Apr 2002
Posts: 2

Original Poster
Rep: Reputation: 0
You are correct, this is an NTFS partition. However, I verified the permissions. All of the files have the same permissions. Read, write, modify, etc. are all enabled.
Old 08-25-2003, 07:52 PM   #4
LQ Newbie
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Sorry to bring that old thread up, but i have the exact same problem here and can't find any answer anywhere.

Some files will transfer just fine...others will say permission denied and get created on the linux box with 0kb size.

If anyone has an answer to this, plz tell me so!!

Old 08-27-2003, 07:33 AM   #5
LQ Newbie
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
OK, this is definetly a problem with NTFS partitions. I can sorta go around this by copying the file on my windows machine, delete the original file and then rename the copy. If i then try to copy it from linux, it will work most of the time.

So i'm guessing it linux can't read files stored in some way or some location on NTFS partitions...I guess there's nothing to do about it other than getting myself a Fat32 partition on windows to share my files.
Old 08-27-2003, 11:18 AM   #6
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
creat user accounts with same username and password in liux which are using windows windows 2000

may it will resolve problem

Old 08-28-2003, 02:43 AM   #7
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
i had similar inconsistent (i.e. 50%/50%) problems with smbfs to ntfs. having gid,uid,fmask, and dmask all set straightened it out, may work in your case.

example from auto.samba file (using autofs)
ShareName -fstype=smbfs,credentials=/etc/auto.samba.credentials,uid=500,gid=500,dmask=0750,fmask=0750 ://machineName/ShareName
Old 08-29-2003, 10:47 PM   #8
LQ Newbie
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Are there similarities between the files that won't copy?

In the example they all have "-" in the names, which may be the problem. Try copying it to the same filename with no "-" (use win98 etc. if you have to).
Old 08-29-2003, 11:11 PM   #9
LQ Newbie
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Thanks for the replies, i haven't had time to try them yet, but i will.

Taff: Filenames aren't the problem. When i tried the copy/delete thing, i renamed the copy to exactly the same as the original and it worked.

i.e. I had the file "pic1.jpg" that wouldn't copy to linux. I made a copy in windows which became "copy of pic1.jpg". I deleted the original file (pic1.jpg) and renamed the new one to that. I tried the transfer again and it worked.

I will tell you if any of the suggestions above fixed it for me.


Last edited by Propag; 08-29-2003 at 11:12 PM.


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
Can't access my linux share through samba. I get permission denied. mlsbraves Linux - Software 1 08-16-2005 07:59 PM
Samba error: Permission denied dmkang Linux - Software 6 04-01-2005 08:29 AM
Samba Printer Share on Win2K Access Denied, No Connection available MobbyDick Linux - Software 38 07-17-2003 10:12 AM
access is denied : samba PDC, win2k client dkodegwc Linux - Networking 6 12-14-2002 11:02 AM
Accessing Win2K Shares-permission denied bdog Linux - Networking 4 01-26-2002 07:26 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration