Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-22-2009, 01:40 PM   #1
Registered: Jul 2009
Posts: 96

Rep: Reputation: 16
Question permission denied error while trying to write to a mount of windows share

I mounted a windows share as root using the command

mount -t cifs //windows_server/file_path -o noperm,rw,username=svc-live-oo,credentials=/etc/cifspw /mnt/windows_data/migration

I ensured from the windows security that "Everyone" has write access to this directory.

When I try to run touch a as root at /mnt/windows_data/migration, I get an error - touch: cannot touch `a': Permission denied
I confirmed that the migration folder has 777 permissions on it.

Based on some google serach, I tried umount and mount with following combinations of noperm and rw, but none helped. I continue to get the same error. What am I missing?

mount -t cifs //windows_server/file_path -o rw,username=svc-live-oo,credentials=/etc/cifspw /mnt/windows_data/migration

mount -t cifs //windows_server/file_path -o noperm,username=svc-live-oo,credentials=/etc/cifspw /mnt/windows_data/migration

mount -t cifs //windows_server/file_path -o noperm,rw,username=svc-live-oo,credentials=/etc/cifspw /mnt/windows_data/migration

Thanks for all the help and suggestions.
Old 12-22-2009, 03:41 PM   #2
Registered: Jul 2009
Posts: 96

Original Poster
Rep: Reputation: 16
Never mind, I figured it out

On the windows box, click on the properties and navigate to sharing tab. Click on the Permissions button "To set permissions for users who access this folder over the network". Enable the appropriate permissions for the users/groups in this dialog. In my case, I gave Everyone Full Control, though that is not recommended.

Hope this helps.


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
[SOLVED] mount error 13 = Permission denied, when trying to access an smb share Zarniwoop79 Linux - Server 2 09-13-2009 06:59 AM
Help with mounting samba share: smbmount or mount.cifs error: permission denied wdli Linux - Server 1 08-11-2009 11:31 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Permission Denied Error Message when trying to mount an NFS share kaplan71 Fedora 1 02-14-2009 07:26 AM
Permission denied trying to mount nfs share leupi Linux - Networking 1 07-30-2007 01:32 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:48 PM.

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