
Clicked Share folder, and then selected Samba (only choice)
testparm -s
net usershare info --long
smbtree
altair4 wrote:Clicked Share folder, and then selected Samba (only choice)
Can you tell us where you are doing this. There's a "Sharing Options" in Nemo but even after clicking it never mentions samba.
If you are doing this from the Menu can you give us the path.
If you think you are using samba please post the output of the following commands:
- Code: Select all
testparm -s
net usershare info --long
smbtree
michaeljwjr@michaeljwjr-desktop ~ $ 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$]"
Processing section "[michaeljwjr]"
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* .
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
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[michaeljwjr]
path = /home/michaeljwjr
guest ok = Yes
michaeljwjr@michaeljwjr-desktop ~ $ net usershare info --long
michaeljwjr@michaeljwjr-desktop ~ $ smbtree
Enter michaeljwjr's password:
WORKGROUP-LINUX
\\PJM-PC
WORKGROUP
\\MICHAELJWJR-LAP michaeljwjr-laptop server (Samba, LinuxMint)
\\MICHAELJWJR-LAP\print$ Printer Drivers
\\MICHAELJWJR-LAP\The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD
\\MICHAELJWJR-LAP\IPC$ IPC Service (michaeljwjr-laptop server (Samba, LinuxMint))
\\MICHAELJWJR-DESK michaeljwjr-desktop server (Samba, LinuxMint)
\\MICHAELJWJR-DESK\IPC$ IPC Service (michaeljwjr-desktop server (Samba, LinuxMint))
\\MICHAELJWJR-DESK\print$ Printer Drivers
\\MICHAELJWJR-DESK\michaeljwjr

Ok I don't know what Nemo is. I typed it in my Menu Search bar and it gave me nothing. When I right click on the folders in the browser (window's style) I see Sharing and I go through that process.
gksu gedit /etc/samba/smb.confnetbios name = mjwjr-laptopnetbios name = mjwjr-desktopsudo service smbd restart
sudo service nmbd restart

However on my laptop I don't appear to be able to share any other folders than the original one I shared. I do the same process (trying to share my home folder across my network) and when I do the same process I used to originally share, the new folder is not appearing in my network.
testparm -s
net usershare info --long
smbtree
altair4 wrote:However on my laptop I don't appear to be able to share any other folders than the original one I shared. I do the same process (trying to share my home folder across my network) and when I do the same process I used to originally share, the new folder is not appearing in my network.
Post the output of following commands from your laptop:
- Code: Select all
testparm -s
net usershare info --long
smbtree
michaeljwjr@michaeljwjr-laptop ~ $ 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$]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Processing section "[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
[global]
workgroup = WORKGROUP-LINUX
netbios name = MJWJR-LAPTOP
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* .
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
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
path = /home/michaeljwjr/Downloads/Torrent/The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
guest ok = Yes
michaeljwjr@michaeljwjr-laptop ~ $ net usershare info --long
michaeljwjr@michaeljwjr-laptop ~ $ smbtree
Enter michaeljwjr's password:
WORKGROUP-LINUX
\\MJWJR-LAPTOP michaeljwjr-laptop server (Samba, LinuxMint)
\\MJWJR-LAPTOP\IPC$ IPC Service (michaeljwjr-laptop server (Samba, LinuxMint))
\\MJWJR-LAPTOP\The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD
\\MJWJR-LAPTOP\print$ Printer Drivers
\\MICHAELJWJR-DES Michaeljwjr

[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
path = /home/michaeljwjr/Downloads/Torrent/The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
guest ok = Yes
[The-Dark-Knight]
path = /home/michaeljwjr/Downloads/Torrent/The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
guest ok = Yes
sudo service smbd restart
altair4 wrote:To be honest I have no idea how Samba would handle a share named: The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD. I also have no idea why testparm is trying to process that share definition 9 times.
You might want to edit smb.conf directly and change this:[The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
path = /home/michaeljwjr/Downloads/Torrent/The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
guest ok = Yes
To this:[The-Dark-Knight]
path = /home/michaeljwjr/Downloads/Torrent/The.Dark.Knight.Rises.2012.720p.BluRay.x264-SPARKS [PublicHD]
guest ok = Yes
Then restart samba:
- Code: Select all
sudo service smbd restart


netbios name = mjwjr-laptopmichaeljwjr-laptopsudo: unable to resolve host michaeljwjr-laptop
nmbd stop/waiting
nmbd start/running, process 2621
127.0.0.1 localhost
127.0.1.1 mjwjr-laptop
mjwjr-laptop

altair4 wrote:"netbios name" and hostname are 2 different things. Samba in debian makes the netbios name match the hostname but it can be overridden in smb.conf so that the netbios name can be something else. It has no affect on the real hostname. I suggested you do it this way to prevent what just happened to you.
The unable to resolve hostname error is because you changed the actual hostname in only one location. It must be changed in these 2 locations:
/etc/hosts:127.0.0.1 localhost
127.0.1.1 mjwjr-laptop
/etc/hostnamemjwjr-laptop

Users browsing this forum: No registered users and 2 guests