Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba Quick Howto
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
guard0
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2003
Posts: 96

PostPosted: Thu Jun 23, 2005 3:09 am    Post subject: Reply with quote

here's the point-n-click, easy way to do it

emerge LinNeighborhood
_________________
Linux on an AMD processor: an OS for people who dont use deoderant with a CPU for people who can't afford deoderant
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Thu Jun 23, 2005 3:14 am    Post subject: Reply with quote

guard0 wrote:
here's the point-n-click, easy way to do it

emerge LinNeighborhood


oooooohh, i'll have to try that out. thanks.
_________________
Sheepdog
Why Risk It? | Samba Howto
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Fri Jun 24, 2005 1:13 pm    Post subject: Reply with quote

guard0 wrote:
here's the point-n-click, easy way to do it

emerge LinNeighborhood


a good program but doesnt look so good. i'd rather configure nautilus to do the same. for kde, smb4k is pretty good.
Back to top
View user's profile Send private message
guard0
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2003
Posts: 96

PostPosted: Sun Jun 26, 2005 10:56 pm    Post subject: Reply with quote

rush_ad wrote:
a good program but doesnt look so good. i'd rather configure nautilus to do the same. for kde, smb4k is pretty good.


yeah, i hear ya, but this is easier to get going at first..
_________________
Linux on an AMD processor: an OS for people who dont use deoderant with a CPU for people who can't afford deoderant
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1181
Location: Motown

PostPosted: Thu Jun 30, 2005 9:28 pm    Post subject: Reply with quote

It is a good idea to keep in mind that Samba is not smbfs and does not use or rely on smbfs. To paraphrase John Terpstra (author of some Samba docs): the user-space tools smbmount, smbumount, et al are part of the smbfs kernel driver package (not Samba). They are shipped with Samba because they use common libraries with Samba.

My recommendation would be to avoid smbfs and use cifs (also a kernel driver) instead. Smbfs has some problems, one being a 2GB limit.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Thu Jun 30, 2005 10:52 pm    Post subject: Reply with quote

Quote:

My recommendation would be to avoid smbfs and use cifs (also a kernel driver) instead. Smbfs has some problems, one being a 2GB limit.


2GB directory limit or file limit?
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1181
Location: Motown

PostPosted: Thu Jun 30, 2005 10:58 pm    Post subject: Reply with quote

rush_ad wrote:
2GB directory limit or file limit?


Either. You will truncate files larger than 2GB and you will not see all of the files in a directory over 2GB.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1181
Location: Motown

PostPosted: Thu Jun 30, 2005 11:06 pm    Post subject: Reply with quote

Some added clarification: Samba is used to act as an smb "server" - to share your files Windows style. While smbfs or cifs is used to mount smb shares (Windows, Samba, Dave, etc.).
You don't use Samba to mount shares and you don't use smbfs or cifs to serve shares.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1181
Location: Motown

PostPosted: Thu Jun 30, 2005 11:08 pm    Post subject: Reply with quote

robbyjo wrote:
It would be very nice if there's a way to "copy" user's passwords over to Samba without requiring the user to reinput the passwords.

Since the password encryption for Windows is different and Linux encrypted passwords cannot be decrypted this is impossible.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Thu Jun 30, 2005 11:19 pm    Post subject: Reply with quote

darkphader wrote:
Some added clarification: Samba is used to act as an smb "server" - to share your files Windows style. While smbfs or cifs is used to mount smb shares (Windows, Samba, Dave, etc.).
You don't use Samba to mount shares and you don't use smbfs or cifs to serve shares.

Chris


ok, i get it... so you don't need smbfs (nor cifs) if you only serve out from the Linux box, but you must have one or the other only if you mount a share from a Windows box (or another Linux box running Samba, but if you wanted to do that you might as well use NFS)?

i'll have to change the Howto later to reflect this, especially regarding cifs. thanks for pointing it out.

Quote:
Since the password encryption for Windows is different and Linux encrypted passwords cannot be decrypted this is impossible.


well i you knew the tricks of the trade, you could brute force it right? :lol: (yes it would be pointless, i'm just sayin'.)
_________________
Sheepdog
Why Risk It? | Samba Howto
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1181
Location: Motown

PostPosted: Thu Jun 30, 2005 11:34 pm    Post subject: Reply with quote

Sheepdogj15 wrote:
ok, i get it... so you don't need smbfs (nor cifs) if you only serve out from the Linux box, but you must have one or the other only if you mount a share from a Windows box (or another Linux box running Samba, but if you wanted to do that you might as well use NFS)?


Yes, NFS would probably be best for Nix to Nix communication. But if you have to serve them up for Windows as well it's probably less problematic to use smb/cifs to connect from your nix systems.

Sheepdogj15 wrote:
darkphader wrote:
Since the password encryption for Windows is different and Linux encrypted passwords cannot be decrypted this is impossible.


well i you knew the tricks of the trade, you could brute force it right? :lol: (yes it would be pointless, i'm just sayin'.)


Yes, probably more correct to say something like "so time consuming to be virtually useless".

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Thu Jun 30, 2005 11:43 pm    Post subject: Reply with quote

LMBO! pretty much.
_________________
Sheepdog
Why Risk It? | Samba Howto
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Fri Jul 01, 2005 9:47 pm    Post subject: Reply with quote

updated the Howto to reflect usage of CIFS instead of SMB filesystem.
_________________
Sheepdog
Why Risk It? | Samba Howto
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Sun Jan 29, 2006 6:23 am    Post subject: Reply with quote

Updated the howto with password encryption. Also a comment on authenticating under the hood.

With regards to password encryption, you might want to redo your samba user accounts (e.g. "smbpasswd -x [user]" and then "smbpasswd -a [user]"), but it doesn't seem like you need to on initial inspection.


Also, i now realize that i'm breaking with Filesystem Hierarchy Standard in the Howto. it's not essential, but recommended, that the samba share be a folder in the user home folder (e.g. /home/justin/stuff) or the user's home folder itself. and if you just create it with the Linux user of the same name etc. of the smb/windows user, the folder permissions should already be set as needed.
_________________
Sheepdog
Why Risk It? | Samba Howto
Back to top
View user's profile Send private message
nostabo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 201
Location: 38° 31' N 121° 30' W

PostPosted: Sun Feb 05, 2006 6:32 am    Post subject: Reply with quote

Is it possible to "run" windows applications from a Linux/Samba server? I have a Dentist friend who would like to replace his peer network with a Linux server based TCP/IP network. The problem is he has a Windows application that stores financial, office management and x-ray data that runs off his peer "server". He would still need to have the same centralized application running on whatever type of server he upgrades to. Can his app run on a FAT32 partition on a Linux/Samba server?

He also needs to share his DSL connection from the server...
_________________
Registered Linux user number 362941
Get counted - http://counter.li.org/
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1181
Location: Motown

PostPosted: Sun Feb 05, 2006 7:24 pm    Post subject: Reply with quote

nostabo wrote:
Is it possible to "run" windows applications from a Linux/Samba server? I have a Dentist friend who would like to replace his peer network with a Linux server based TCP/IP network. The problem is he has a Windows application that stores financial, office management and x-ray data that runs off his peer "server". He would still need to have the same centralized application running on whatever type of server he upgrades to.

This, in a way, depends on what you mean by running off his peer server. Does the app actually run on the "server", or is it running from the "server", where the "server" is just supplying the data files and or the application code? If it's just supplying the data, and or the code (the clients load the code through the network), then it's pretty straightforward.
If the application, or some part of it, truly must be running on the server then you are probably out of luck. You could try wine (probably not a good idea) or some VM technology, but you're probably better maintaining a Windows box.

nostabo wrote:
Can his app run on a FAT32 partition on a Linux/Samba server?

Frankly I wouldn't use FAT32 for anything like this. The network doesn't expose the underlying file system.

nostabo wrote:
He also needs to share his DSL connection from the server...

Get a cable/DSL router, don't bother the server with this.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Donkey_Breath
n00b
n00b


Joined: 21 Dec 2005
Posts: 12

PostPosted: Tue Mar 07, 2006 6:55 am    Post subject: Re: Samba Quick Howto Reply with quote

Sheepdogj15 wrote:


You should now be able to connect in. To do so, open Windows Explorer in Windows, and type in \\(computer name)\(share). Remember those are forward slashes not backslashes. so for my set up, it would be \\thebeast\smb



Ermm... I don't mean to nitpick, but that's kind of confusing. Those are backslashes.

Great guide otherwise.
Back to top
View user's profile Send private message
Jykke
Apprentice
Apprentice


Joined: 31 Mar 2006
Posts: 246

PostPosted: Wed Apr 12, 2006 9:13 am    Post subject: Reply with quote

I just newly realized that samba can be used to mount drives from windows to linux.
There is no problem with NTFS then, is there?
(Too bad you can't use this way to mount local windows partitions of a shared machine - since
windows is not running simultaneously)

I assume that you have to give your windows drives free to the network from windows before
samba can access them? (I mean I could not access a second windows machine in network
from another windows machine if the drive wasn't shared first)?
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1181
Location: Motown

PostPosted: Wed Apr 12, 2006 1:35 pm    Post subject: Reply with quote

Jykke wrote:
I just newly realized that samba can be used to mount drives from windows to linux.
There is no problem with NTFS then, is there?
(Too bad you can't use this way to mount local windows partitions of a shared machine - since
windows is not running simultaneously)

I assume that you have to give your windows drives free to the network from windows before
samba can access them? (I mean I could not access a second windows machine in network
from another windows machine if the drive wasn't shared first)?


It would be more correct to say that you can use various "tools" to connect to Windows "shares".
The local filesystem is not of consequence as you are communicating via network protocols and do not directly access the filesystem.
As for the "tools", Samba is not necessary, you can build the kernel modules smbfs or cifs (recommended) which will allow mounting of the network shares. If desired you can use Samba's smbclient for ftp-like access to such shares.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
nealbirch
n00b
n00b


Joined: 18 Jan 2003
Posts: 25

PostPosted: Tue Apr 18, 2006 3:38 am    Post subject: xfce utility for network shares Reply with quote

xfce has a network server application which does much like linneighborhood.
Back to top
View user's profile Send private message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 219
Location: Poland

PostPosted: Thu Jul 06, 2006 12:45 am    Post subject: Reply with quote

And how to make a folder shared from Konqueror? It has different icons for shared folders and it offers additional tab in right-click menu, but it doesn't wor for me [I have only Konqueror and some KDE stuff under FLuxbox]. How to make it work?
_________________
SasQ
Back to top
View user's profile Send private message
Sheepdogj15
Guru
Guru


Joined: 07 Jan 2005
Posts: 430
Location: Backyard

PostPosted: Fri Sep 01, 2006 12:14 am    Post subject: Reply with quote

just an small but serious update. in the howto, i had the create permissions set to "0760," when that should be "0750." 0750 will stop folks in the group (other than owner user) from writing to the share; 0760 will not.

i think directories need the executable bit set (1) for it to be accessed, so i don't think this is a critical security problem.


Also added a link, so that you can customize your permissions as you see fit.
_________________
Sheepdog
Why Risk It? | Samba Howto
Back to top
View user's profile Send private message
SMoo
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2004
Posts: 140
Location: Leander, TX

PostPosted: Mon Dec 17, 2007 1:23 pm    Post subject: Reply with quote

Sheepdogj15 wrote:
thank you :)

another guide i looked at talked about a utility for that purpose, but i couldn't find it anywhere on my system. I'll search around and see if i can find another way to sync smb logins with the Linux logins.


Webmin has a utility for this... I use it all the time...

After webmin is isntalled, you can go into the configuration and set it to automagically set up a linux user as a samba user behind the scenes...
Back to top
View user's profile Send private message
mattlinuxguy
n00b
n00b


Joined: 20 Feb 2008
Posts: 6

PostPosted: Thu Feb 21, 2008 11:14 pm    Post subject: Reply with quote

awesome ty. i setup samba b4 just winging it. i did get it but not nearly as clean. and i didnt know about that fs thing.
im going to come back here when i setup samba on my new laptop :D sorry for the useless reply its just so i can search my own name haa haa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum