Solved

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

Posted on 2010-09-20
8
630 Views
Last Modified: 2012-05-10
Hello All

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

//10.3.5.70/sharename /mnt/share1 cifs username=guest,password='' 0 0
//10.3.5.93/sharename /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.



0
Comment
Question by:butterhook
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 79

Expert Comment

by:arnold
ID: 33716914
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?
0
 
LVL 1

Author Comment

by:butterhook
ID: 33717003
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.
0
 
LVL 79

Expert Comment

by:arnold
ID: 33717179
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?
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 1

Author Comment

by:butterhook
ID: 33717189
Yes.
0
 
LVL 79

Expert Comment

by:arnold
ID: 33717232
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.
0
 
LVL 1

Author Comment

by:butterhook
ID: 33717325
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?



0
 
LVL 79

Accepted Solution

by:
arnold earned 500 total points
ID: 33717475
yes.

You may have to add options to the mount that i.e. noperm, etc.
http://linux.die.net/man/8/mount.cifs
0
 
LVL 1

Author Closing Comment

by:butterhook
ID: 33717758
That's the ticket! Thank you
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cloud file services can fill many different roles for your business. Often, the use of cloud file services begins with employees using consumer products, like Dropbox, to share files with customers and each other. While sync-and-share can be an effe…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

630 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