

Linux Mint Debian Edition Preliminary Steps
Step 1: "Guest Access" option is disabled by default. To enable it:
Open smb.conf as root:
- Code: Select all
gksu gedit /etc/samba/smb.conf
Add the following lines to the [global] section:
- Code: Select all
usershare allow guests = yes
- Code: Select all
map to guest = Bad user
And restart samba:
- Code: Select all
sudo service samba restart
Step 2: You do not have permissions to create a usershare because you are not included in the correct group.
- Code: Select all
sudo gpasswd -a your_user_name sambashare
Step 3: Add samba client packages
- Code: Select all
sudo apt-get install gvfs-fuse
sudo apt-get install libsmbclient
sudo apt-get install smbclient
sudo apt-get install python-smbc
Then add yourself to the fuse group:
- Code: Select all
sudo gpasswd -a your-user-name fuse
Step 4: Logoff and Login again for all the group changes to take affect

I have the same user on both computers (ckosloff).
sudo smbpasswd -a ckosloffnautilus smb://server/user-namenautilus smb://192.168.0.100/ckosloff



Could not display "smb://192.168.0.116/ckosloff/".
Error: Failed to mount Windows share
sudo service samba restartNautilus in LMDE still refuses to create share.
net usershare info --long
testparm -s
groupsls -al /path/to/debshare
ls -dl /var/lib/samba/usershares
ckosloff@lmde10 ~ $ net usershare info --long
[debshare]
path=/home/ckosloff/Debshare
comment=
usershare_acl=Everyone:F,
guest_ok=nckosloff@lmde10 ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = POMPANO
server string = %h server
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* .
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
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printersckosloff@lmde10 ~ $ groups
ckosloff sudo fuse sambashareckosloff@lmde10 ~ $ ls -al /path/to/debshare
ls: cannot access /path/to/debshare: No such file or directoryckosloff@lmde10 ~ $ ls -al /path/to/Debshare
ls: cannot access /path/to/Debshare: No such file or directoryckosloff@lmde10 ~ $ ls -dl /var/lib/samba/usershares
drwxrwx--T 2 root sambashare 4096 Mar 17 05:40 /var/lib/samba/usershares
ckosloff@lmde10 ~ $ ls -al /path/to/Debshare
ls: cannot access /path/to/Debshare: No such file or directory
ls -al /home/ckosloff/DebshareNautilus in LMDE still refuses to create share.
'net usershare' returned error 255: net usershare add: failed to add share debshare. Error was Operation not permitted
net usershare info --long
[debshare]
path=/home/ckosloff/Debshare
comment=
usershare_acl=Everyone:F,
guest_ok=n
smbtreesudo service --status-allsudo service name-of-service status
ckosloff@lmde10 ~ $ ls -al /home/ckosloff/Debshare
total 20
drwxrwxrwx 2 ckosloff ckosloff 4096 Mar 13 22:41 .
drwxr-xr-x 34 ckosloff ckosloff 4096 Mar 17 13:28 ..
-rw-r--r-- 1 ckosloff ckosloff 9171 Feb 20 22:56 address bar.odt
ckosloff@lmde10 ~ $ smbtree
Enter ckosloff's password:
WORKGROUP
POMPANO
\\TNACH Smilodon
cli_start_connection: failed to connect to TNACH<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
\\LMDE10 lmde10 server
\\LMDE10\debshare
\\LMDE10\ckosloff Home Directories
\\LMDE10\Print_to_PDF Print to a PDF File
\\LMDE10\IPC$ IPC Service (lmde10 server)
\\LMDE10\print$ Printer Drivers


Posted from computer A (Julia 64-bit main edition).
Success!
I could connect to LMDE and see all my home directory, not just debshare.
I created the share as root, however it does not show up in Nautilus under my profile as shared, just as a directory.
It does show up shared to root.
'net usershare' returned error 255: net usershare add: failed to add share debshare. Error was Operation not permitted
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
sudo service smbd restart

ckosloff wrote:This is the content of file Debshare in /var/lib/samba/usershares
#VERSION 2
path=/home/ckosloff/Debshare
comment=
usershare_acl=S-1-1-0:F
guest_ok=n
If I change it to guest_ok=y
will it work?
How can I make it accessible?
We are making good progress but I still have questions, maybe this thread is becoming too long.
I can start another one if necessary.
I understood all your explanations, everything is clear to me, thank you very much.



Well, the whole home folder is accessible, and also Debshare, but as a folder, it does not show the share icon.
I did follow instructions, and, as root, enabled guest access.
Restarted computer and Debshare still does not show the little hand icon.
The Debian machine is always accessible from Main, but only with the IP address.
I checked on the router, and there is no name for it, although terminal does show a name for this computer (lmde10).
Surprisingly, the main edition computer does have a name in the network (Julia-Pavilion).
I would like the LMDE to have a name too, how do I go about it?
\\LMDE10 lmde10 server
\\LMDE10\debshare
\\LMDE10\ckosloff Home Directories
\\LMDE10\Print_to_PDF Print to a PDF File
\\LMDE10\IPC$ IPC Service (lmde10 server)
\\LMDE10\print$ Printer Drivers
name resolve order = bcast host lmhosts winssudo service samba restart

ckosloff wrote:Regarding router: it is a D-Link DIR-635.
It can only assign one reservation and it is taken by the network printer.
Otherwise it would be a nightmare after each lease renewal.
It is strange that all devices connected to the router have a netbios name, except for lmde10.
sudo apt-get install nmapsudo nmap -sS -sU -T4 192.168.0.100PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
137/udp open|filtered netbios-ns
138/udp open|filtered netbios-dgm
BTW, I have a problem in main computer too, it cannot display its smbtree, but I reserve that one for the networking forum.

Users browsing this forum: No registered users and 1 guest