so im having some serious samba trouble. the linux mce machine appears on the windows network from a windows machine but the message "The Server service has not started" comes up and i cant pint the linux machine from the doze. now on the other side when i enter into the network neighborhood not even the workgroup comes up but i can ping the doze machine from the linux. at this point i have a mega headache.
here is a dump of my smb.conf file maybe you guys can see something im missing?
[global]
workgroup = WIREDHOME
server string = DCERouter
security = SHARE
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
username map = /etc/samba/usermap.txt
log level = 2
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
smb ports = 139
dns proxy = No
invalid users = root
[public]
comment = public files
path = /home/public/data
read only = No
create mask = 0777
directory mask = 0777
guest ok = Yes
[home]
comment = shared home files
path = /home
force user = root
force group = root
read only = No
guest ok = Yes
[alexander]
comment = alexander's private files
path = /home/user_1
read only = No
create mask = 0770
directory mask = 0770
Alrighty kids i've figured out the cause and now i have the cure.
apparently linux mce's firewall blocks port 139. now samba uses port 139 fairly exclusively ( you can change it but thats alot of hassle) so if your having network trouble go into the firewall settings from the pluto admin page and add port 139 to allowed ports list. problem solved. if you concerned about security you can restricted the port to access from certain IPs. so there you ahve it. took me all day to figure out a 30 second fix.
Thanks for the info, got my port forwarded. However, I'm running into some samba issues as well and I hope its ok to just add this to your thread instead of just making a new one. I want to be able to write to any folder within my public folder.
I started taking a look at the smb.conf file. So far I've added the 'guest ok = yes' option under [public] and i've changed 'security = user' to 'security = share'. I then restarted the samba daemon. But apparently I still can't drop files from my Suse 10.2 box to my LinuxMCE box. Its giving me an "Error "Access Denied" while copying ..." Has anyone run into this before? Here's my smb.conf:
## @FileType: Pluto Sectioned Config File ##
## @Version: 1 ##
## @KeepSections: ##
## @RemoveSections: ##
[global]
## BEGIN : Domain and Hostname
workgroup = LinuxMCE
server string = DCERouter
netbios name = DCERouter
## END : Domain and Hostname
smb ports = 139
log level = 2
invalid users = root
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
encrypt passwords = true
socket options = TCP_NODELAY
dns proxy = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spa$
username map = /etc/samba/usermap.txt
unix extensions = yes
security = share
[public]
comment = public files
browseable = yes
writable = yes
create mask = 0777
directory mask = 0777
path = /home/public/data
public = yes
guest ok = yes
[home]
comment = shared home files
browsable = yes
writable = yes
path = /home
public = no
guest ok = no
force user = root
force group = root
## BEGIN : User Shares
## END : User Shares
yeah i think i know want your problem is. i ran into this a while ago when i made a debian server. all you gotta do is sudo chmod 777 /home/public/data...... with the ..... representing all the sub-folders in the data file. if that doesnt work see if you can ping the computers from each other. if you cant then theres still a firewall problem. post your results when your done.
yeah i couldn't ping the computer. i turned off the firewall and i can ping it now, but when i try to drop the file in there it still gives me that error.
yay! i tried changing the permissions recursively again and this time it worked. I think i typed in a different permission earlier.. thank you!!
oh btw, i forgot what the command was to list the contents of the current directory with the permissions for each file and folder. anyone happen to remember it? i thought ls could do that, but maybe i'm wrong.
I think you are looking for
ls -l
or, if you want hidden files as well (those beginning with a ".")
ls -al
HTH
ah yes! thanks!