samba on ubuntu issues
Moderator: General Moderators
samba on ubuntu issues
I can't seem to get samba to work correctly:
this is what I have done:
sudo apt-get install samba
sudo apt-get install smbfs
sudo smbpasswd -a burrito
then typed and confirmed my password
then in /etc/samba/smbusers I added this line:
burrito = burrito
I also tried
burrito = "burrito"
and (thinking maybe I had to have a different name:
burrito = burritos
next in: /etc/samba/smb.conf I uncommented this line
security = user
and added this line right below it:
username map = /etc/samba/smbusers
finally I added this to the end of my smb.conf file:
[music]
comment = music folder
path = /var/www/music
public = yes
writable = yes
valid users = burrito
create mask = 0777
directory mask = 0777
force user = nobody
force group = nobody
I also tried it w/o the 'valid users' directive
after saving my file I ran 'testparm' and received this for my output
burrito@tacostand:/etc/samba# sudo testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[music]"
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
which looks ok to me...save the one minor warning.
I then restarted my samba services and tried to map a drive from my windows xp machine adn get this error:
"The mapped network drive could not be created because the following error has occurred: An extended error has occurred"
I'm at a complete loss of what to try next, can anyone shed some light on this please?
this is what I have done:
sudo apt-get install samba
sudo apt-get install smbfs
sudo smbpasswd -a burrito
then typed and confirmed my password
then in /etc/samba/smbusers I added this line:
burrito = burrito
I also tried
burrito = "burrito"
and (thinking maybe I had to have a different name:
burrito = burritos
next in: /etc/samba/smb.conf I uncommented this line
security = user
and added this line right below it:
username map = /etc/samba/smbusers
finally I added this to the end of my smb.conf file:
[music]
comment = music folder
path = /var/www/music
public = yes
writable = yes
valid users = burrito
create mask = 0777
directory mask = 0777
force user = nobody
force group = nobody
I also tried it w/o the 'valid users' directive
after saving my file I ran 'testparm' and received this for my output
burrito@tacostand:/etc/samba# sudo testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[music]"
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
which looks ok to me...save the one minor warning.
I then restarted my samba services and tried to map a drive from my windows xp machine adn get this error:
"The mapped network drive could not be created because the following error has occurred: An extended error has occurred"
I'm at a complete loss of what to try next, can anyone shed some light on this please?
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
well I broke down and installed the GUI, and tried sharing a folder from within Gnome.
it worked.
I then checked what it did to smb.conf and the only diff between what it did and what I did was it didn't have the 'force user = nobody' nor the 'force user = group' options.
I changed that on the folder I tried to share...and guess what, it worked. I then looked at the samba logs to see if they would show me anything and they did, they said something about not having a group 'nobody'. I was under the impression that 'nobody' meant 'nobody' and I didn't need to have a 'group' for that. apparently I was wrong.
can any of you explain the group system to me and tell me about 'nobody'?
it worked.
I then checked what it did to smb.conf and the only diff between what it did and what I did was it didn't have the 'force user = nobody' nor the 'force user = group' options.
I changed that on the folder I tried to share...and guess what, it worked. I then looked at the samba logs to see if they would show me anything and they did, they said something about not having a group 'nobody'. I was under the impression that 'nobody' meant 'nobody' and I didn't need to have a 'group' for that. apparently I was wrong.
can any of you explain the group system to me and tell me about 'nobody'?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
"nobody" is just a group and a user on most linux systems. The privileges for these are next to none so processes often run under the user group in order to lower the risk in the event of exploits etc. It's just a logical name to use for something like that. My apache server runs as "nobody".Burrito wrote:well I broke down and installed the GUI, and tried sharing a folder from within Gnome.
it worked.
I then checked what it did to smb.conf and the only diff between what it did and what I did was it didn't have the 'force user = nobody' nor the 'force user = group' options.
I changed that on the folder I tried to share...and guess what, it worked. I then looked at the samba logs to see if they would show me anything and they did, they said something about not having a group 'nobody'. I was under the impression that 'nobody' meant 'nobody' and I didn't need to have a 'group' for that. apparently I was wrong.
can any of you explain the group system to me and tell me about 'nobody'?
Glad you got it working anyway