Hi,
I've Linux while my brother have Windows7
I can see, access and modify his shares. while he can't modify and access my shares but he can see them
How can I fix this issue?

testparm -snet usershare info --long
altair4 wrote:I don't use KDE so I don't know what it's doing but it would help if we could see how your shares are set up. Please post the output of the following commands:
- Code: Select all
testparm -s
- Code: Select all
net usershare info --long
mbnoimi@mbnoimi-pc ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, LinuxMint)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
mbnoimi@mbnoimi-pc ~ $ net usershare info --long
[shared]
path=/home/mbnoimi/Desktop/mnnoimi
comment=
usershare_acl=Everyone:F,Unix User\admino:F,Unix User\mbnoimi:F,MBNOIMI-PC\mnnoimi:F,Unix User\user1:F,
guest_ok=y
info_fn: file /var/lib/samba/usershares/mnnoimi is not a well formed usershare file.
info_fn: Error was Path is not a directory.
mbnoimi@mbnoimi-pc ~ $

ls -dl /home/mbnoimi/Desktop/mnnoimidrwxrwxrwx mbnoimi mbnoimi /home/mbnoimi/Desktop/mnnoimi
chmod 0777 /home/mbnoimi/Desktop/mnnoimiforce user = mbnoimisudo service smbd restart
altair4 wrote:In order for that usershare to work the the permissions have to be 777. So run the following command:
- Code: Select all
ls -dl /home/mbnoimi/Desktop/mnnoimi
It should come back with the following:drwxrwxrwx mbnoimi mbnoimi /home/mbnoimi/Desktop/mnnoimi
If it's not that then make it that:
- Code: Select all
chmod 0777 /home/mbnoimi/Desktop/mnnoimi
An alternative method is to add the following line to the [global] section of /etc/samba/smb.conf - right under the workgroup line:
- Code: Select all
force user = mbnoimi
Then restart samba:
- Code: Select all
sudo service smbd restart

Users browsing this forum: No registered users and 4 guests