[SOLVED]Samba - Sharing issue

Questions about cabled networking
Forum rules
Before you post please read this

[SOLVED]Samba - Sharing issue

Postby mbnoimi on Tue Apr 24, 2012 3:24 am

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?
Attachments
snapshot2.png
Share configurations
snapshot2.png (46.1 KiB) Viewed 460 times
Last edited by mbnoimi on Tue Apr 24, 2012 1:00 pm, edited 1 time in total.
mbnoimi
Level 1
Level 1
 
Posts: 33
Joined: Sat Dec 04, 2010 7:45 pm

Linux Mint is funded by ads and donations.
 

Re: Samba - Sharing issue

Postby altair4 on Tue Apr 24, 2012 6:54 am

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
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba - Sharing issue

Postby mbnoimi on Tue Apr 24, 2012 12:21 pm

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


Code: Select all
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 ~ $
mbnoimi
Level 1
Level 1
 
Posts: 33
Joined: Sat Dec 04, 2010 7:45 pm

Re: Samba - Sharing issue

Postby altair4 on Tue Apr 24, 2012 12:43 pm

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
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba - Sharing issue

Postby mbnoimi on Tue Apr 24, 2012 12:59 pm

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



Thanks a lot it's working now ... the solution is
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
mbnoimi
Level 1
Level 1
 
Posts: 33
Joined: Sat Dec 04, 2010 7:45 pm


Return to Ethernet

Who is online

Users browsing this forum: No registered users and 3 guests