How do I mount a NTFS share in Centos 6.2

Posted on 2012-08-25
Last Modified: 2012-08-31
Below novice linux guy. Trying to get NTFS share to mount in Centos 6.2 with write permission.
I have CentOS 5.7 working using the following method, can't get it to work in 6.2.
1. On CentOS vm, created user "pusher" set password to "password"
2. On W2K server 2003, created local user "pusher" set password to "password". Set as Administrator
3. On CentOS vm, as pusher I ran mkdir /mnt/SHARE
4. On Centos 5.7 vm, logged in as "pusher", in command line I type mount -t cifs -o username=puser,password=password //server/C$ /mnt/SHARE
5. I can then read and write to /mnt/SHARE

When I try this same thing in 6.2 I get read only. WHen I look at permissions it shows drwx-rx-x.  

Again, barely know what I'm doing. Just trying to copy an existing setup. If you could provide full solution using account names etc, it would be much appreciated.

End goal is to have user "pusher" on linux box able to read/write to mounted NTFS directory. again this is working as above in centos 5.7.

Greatly appreciate any help as I'm tearing what little hair I have left out.
Question by:adamant40
    LVL 76

    Expert Comment

    Try using rw option on the mount command
    The share you are mounting appears to be an admin mount.

    Drwx what username is reflected as the owner of the /mnt/share?
    Run chmod 777 /mnt/share after the mount.
    LVL 14

    Expert Comment

    The d in drwx means "directory." The rwx means the permissions are read/write/execute for the owner - that's why Arnold asked who is the owner. The rx means it's read/execute for the group that owns the file/directory. Running chmod as Arnold suggests will change it to read/write/execute for everyone.

    Accepted Solution

    Thanks for the responses. I tried making those changes but it didn't' have any effect, or I didn't complete the steps correctly. After about 100 fails, I got it working with the following combination in the /etc/fstab and using the mount -a command.

    //SERVER/share /mnt/SHARE cifs username=pusher,pasword=password,file_mode=0666,dir_mode=0777 0 0

    I am going to have to rebuild this again and will try using the instructions above again to see if I was doing something incorrectly. Thanks.
    LVL 2

    Expert Comment

    use the below command

    mount -t cifs //shareip/sharename -o username=username,password='yourpassword' /your/mountpint

    Author Closing Comment

    My answer, although guess work, provided a working solution to my problem. Linux system can now write files into mounted NTFS directory. Could not get experts solutions to work, maybe implementation issue on my end. Appreciate their input as I learned something.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now