SMB/CIFS shares mounted on Fedora 13 computer - permission issue for writing

Hello All

I've got a problem - I have the following lines in my /etc/fstab file (anonymised of course):

// /mnt/share1 cifs username=guest,password='' 0 0
// /mnt/share2 cifs domain=MYDOM,username=dave,password=hello, 0 0

I originally had made these folders in /mnt/ and chmod'ed to 777 so everyone should be able to write.

When mounted, files on the shares are able to be viewed in the file browser and from terminal, but I cannot write to the shares when I am logged in as a non-root user.

However when I sudo in the terminal and try creating a file with 'touch', this works fine.

What can I do to ensure that the normal users on the linux machine can access these shares and are able to write?

This is really confounding me!

Thanks in advance.

Who is Participating?
arnoldConnect With a Mentor Commented:

You may have to add options to the mount that i.e. noperm, etc.
Check the permissions on the server from which the shares come to see the sharing permissions. Who can create/modify files?
Do you have everyone and then enforce using the security settings?
or does the sharing settings only allow administrators full access and everyone has read only?
butterhookAuthor Commented:
The sharing settings on the target device certainly allow the users connected with to create files.

As I said, when logged into the linux machine as root then am able to create files.
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Root is seen as an administrative user.

If you mount the share on a windows system, do non-administrative users have rigts to create/modify files in this location?
butterhookAuthor Commented:
Does the user on the linux system exist with the same password on the windows system?
If this is an AD based environment, is the limited/restricted user on fedora logged in as an AD user or is it a local user on the linux box?

Under the sharing settings who has rights?
Under the security settings who has rights?

If you add everyone with full rights under the security tab, you should get the results that you want.
butterhookAuthor Commented:
Thanks for helping....

The first share on the list is a Buffalo Terastation with absolutely no access control for any user - it's just an open network drive, non-active directory.

The second share is on an AD domain, and permissions are all given to Everyone, full control, and additionally the user I have connected as to that mount has full permissions on that folder too.

When I do ls -l in my /mnt directory it still says that the share1 and share2 folders are only readable and writeable by root. Is this the problem?

butterhookAuthor Commented:
That's the ticket! Thank you
All Courses

From novice to tech pro — start learning today.