LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-18-2017, 04:57 AM   #16
MasterPit
LQ Newbie
 
Registered: Apr 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled

Ok, now i am confused. I made this smb_user to protect mounting process with password, when i don't use this username, and mount as guest, then the owner of all files is nobody:nobody. Now i have config of samba:
Code:
[testshare]
        comment = Test share
        path = /path/to/my/share
        guest ok = yes
        writeable = Yes
        create mask = 0666
        directory mask = 0555
And i am mounting like:
Code:
 mount -vvvv -t cifs //<IP>/testshare /mnt/data/ -o setuids,guest
And now no matter as who i am logged, when i create a file on /mnt/data/ the owner is nobody:nobody (exactly like before, bot it was smb_user:smb_usert, when i was mounting with password). No way, to force the owner Alice:Alice
 
Old 04-18-2017, 05:03 AM   #17
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604
probably this helps, try: valid users = @account
https://www.samba.org/samba/docs/using_samba/ch09.html
 
Old 04-18-2017, 05:08 AM   #18
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,784

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
Well for samba it is the connection auth that determines the user, so each user must make it's own separate connection (with smbfs for example - which uses fuse ...) not a systemwide one in fstab as that can only be as the one authenticating user.
 
1 members found this post helpful.
  


Reply


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
Sharing a folder on the network philvd Linux - Newbie 3 06-03-2011 05:54 PM
Sharing folder with Windows network 512upload Ubuntu 32 02-06-2011 03:59 PM
Network sharing folder cheesewizz Linux - Networking 4 05-27-2009 12:08 PM
Sharing a folder between two network computers reverse Debian 2 08-14-2007 11:05 AM
window xp sharing folder on a network blackzone General 1 09-10-2006 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 AM.

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