Re: [Samba] subdirectory of home

2003-03-15 Thread Brian Wiese
On Fri, 14 Mar 2003 09:59:45 +0100
Mar [EMAIL PROTECTED] wrote:

|What I want is to share a subdirectory of home instead the home itself. 
|In this manner, when a user try connect to his home directory, he really 
|will connect with, by example, /home/user/subdir.
|
|I don't now if it's possible to do that in the [homes] section, or I 
|must create a new different section for every user.

See if adding this to your smb.conf would work...

| --
| [homes]
|  comment = Home Directories

path = %H/subdir

|  read only = No
|  browseable = No

peace

  Brian Wiese | [EMAIL PROTECTED] | aim: unolinuxguru
--
  GnuPG/PGP key 0x1E820A73 | FREEDOM! - Braveheart 
--  
This is not about Napster or DVDs. It's about your Freedom.
  I'll see your DMCA and raise you a First Amendment.
  http://www.anti-dmca.org
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] subdirectory of home

2003-03-14 Thread María Isabel López Sánchez-Huete
Thank you for your rapid answer, Tiago, but I suppose I don't well 
explain my doubt.

What I want is to share a subdirectory of home instead the home itself. 
In this manner, when a user try connect to his home directory, he really 
will connect with, by example, /home/user/subdir.

I don't now if it's possible to do that in the [homes] section, or I 
must create a new different section for every user.

Thanks again.

Tiago Cruz wrote:
Hello Maria!

Yeah! See a example in /etc/samba/smb.conf:

--
[homes]
comment = Home Directories
read only = No
browseable = No
[2k]
comment = Programas 2K para teste em servidor Linux
path = /home/tiago/2k
public = yes
guest ok = Yes
writable = yes
force create mode = 777
force directory mode = 777

Regard's
Tiago Cruz
Em Qui, 2003-03-13 às 17:18, María Isabel López Sánchez-Huete escreveu:

	Hi.

	Sorry: my level of english is not enough good. I hope you understand 
what I mean.

	My question is: it's possible to share a subdirectory (and only one 
subdirectory for every user) in the section [homes]?

	The version of samba which i'm working is 2.2.7a, over Solaris 8.

Thanks in advance.
--


[ ]'s

Tiago Cruz
Org. King de Contab. S/C Ltda.
www.linuxrapido.kit.net
Linux User #282636




--

María Isabel López Sánchez-Huete
Area de Sistemas de Apoyo a la Investigación
C.S.I.R.C.
Campus de Fuentenueva (Edificio Mecenas)
Universidad de Granada
email: [EMAIL PROTECTED]
Tlf: 958 242839

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


AW: [Samba] subdirectory of home

2003-03-14 Thread Haidenthaler Klaus
Yo!
 -Ursprüngliche Nachricht-
 Von: María Isabel López Sánchez-Huete [mailto:[EMAIL PROTECTED] 
 Gesendet: Freitag, 14. März 2003 10:00
 An: samba
 Betreff: Re: [Samba] subdirectory of home
 
 
 Thank you for your rapid answer, Tiago, but I suppose I don't well 
 explain my doubt.
 
 What I want is to share a subdirectory of home instead the 
 home itself. 
 In this manner, when a user try connect to his home 
 directory, he really 
 will connect with, by example, /home/user/subdir.
 
 I don't now if it's possible to do that in the [homes] section, or I 
 must create a new different section for every user.

if your clients-machines are Windows2000 or later, you could run a
net use drivename: \\server\homes\your_subdir via netlogon.cmd 
or even the local Startup-Folder without any changes to your samba-setup.

Maybe you could add a path = /home/%u/subdir to the [Homes] segment, 
dunno if this works, not even sure if the '%u' is the right variable.



regards

Klaus Haidenthaler
Softpoint electronics
Server / Netzwerke / IT-Security

Phone: +43 732 / 79 44 79 - 81
Fax:   +43 732 / 79 44 80
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: AW: [Samba] subdirectory of home

2003-03-14 Thread Christopher Barry
On Fri, 2003-03-14 at 07:30, Haidenthaler Klaus wrote:
 Yo!
  -Ursprüngliche Nachricht-
  Von: María Isabel López Sánchez-Huete [mailto:[EMAIL PROTECTED] 
  Gesendet: Freitag, 14. März 2003 10:00
  An: samba
  Betreff: Re: [Samba] subdirectory of home
  
  
  Thank you for your rapid answer, Tiago, but I suppose I don't well 
  explain my doubt.
  
  What I want is to share a subdirectory of home instead the 
  home itself. 
  In this manner, when a user try connect to his home 
  directory, he really 
  will connect with, by example, /home/user/subdir.
  
  I don't now if it's possible to do that in the [homes] section, or I 
  must create a new different section for every user.
 
 if your clients-machines are Windows2000 or later, you could run a
 net use drivename: \\server\homes\your_subdir via netlogon.cmd 
 or even the local Startup-Folder without any changes to your samba-setup.
 
 Maybe you could add a path = /home/%u/subdir to the [Homes] segment, 
 dunno if this works, not even sure if the '%u' is the right variable.
 
 
 
 regards
 
 Klaus Haidenthaler
 Softpoint electronics
 Server / Netzwerke / IT-Security
 
 Phone: +43 732 / 79 44 79 - 81
 Fax:   +43 732 / 79 44 80
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba

do not create a [homes] share.

Instead, as Klaus suggests,

[my-home]
path= /home/%U/somedir
valid users = %U
browsable   = true
guest ok= false
admin users = @your_admin_group_name


If you're on a Windows domain, and you're using security = server,
on the PDC in the user manager specify the UNC path to the home
directory as in \\server\my-home



-C

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] subdirectory of home

2003-03-14 Thread Bob Crandell
Hi,

I do this to keep the Windows world separate from the Linux world.

[Home]
available = yes
comment = Home Directory H:
path = /home/%u/Data
root preexec = mkdir -m 750 %H/Data;chown %u.%g %H/Data
browseable = yes
read only = no
writable = yes
vfs object = /usr/lib/recycle.so
vfs options = /etc/samba/recycle.conf

I hope this helps.


María Isabel López Sánchez-Huete ([EMAIL PROTECTED]) wrote*:

Thank you for your rapid answer, Tiago, but I suppose I don't well
explain my doubt.

What I want is to share a subdirectory of home instead the home itself.
In this manner, when a user try connect to his home directory, he really
will connect with, by example, /home/user/subdir.

I don't now if it's possible to do that in the [homes] section, or I
must create a new different section for every user.

Thanks again.

Tiago Cruz wrote:
 Hello Maria!

 Yeah! See a example in /etc/samba/smb.conf:

 --
 [homes]
  comment = Home Directories
  read only = No
  browseable = No
 [2k]
  comment = Programas 2K para teste em servidor Linux
  path = /home/tiago/2k
  public = yes
  guest ok = Yes
  writable = yes
  force create mode = 777
  force directory mode = 777
 

 Regard's
 Tiago Cruz

 Em Qui, 2003-03-13 às 17:18, María Isabel López Sánchez-Huete escreveu:

 Hi.

 Sorry: my level of english is not enough good. I hope you understand
what I mean.

 My question is: it's possible to share a subdirectory (and only one
subdirectory for every user) in the section [homes]?

 The version of samba which i'm working is 2.2.7a, over Solaris 8.

 Thanks in advance.
--


 [ ]'s

 Tiago Cruz
 Org. King de Contab. S/C Ltda.
 www.linuxrapido.kit.net
 Linux User #282636





--

María Isabel López Sánchez-Huete
Area de Sistemas de Apoyo a la Investigación
C.S.I.R.C.
Campus de Fuentenueva (Edificio Mecenas)
Universidad de Granada
email: [EMAIL PROTECTED]
Tlf: 958 242839




-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] subdirectory of home

2003-03-13 Thread María Isabel López Sánchez-Huete
	Hi.

	Sorry: my level of english is not enough good. I hope you understand 
what I mean.

	My question is: it's possible to share a subdirectory (and only one 
subdirectory for every user) in the section [homes]?

	The version of samba which i'm working is 2.2.7a, over Solaris 8.

Thanks in advance.
--
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] subdirectory of home

2003-03-13 Thread Tiago Cruz
Hello Maria!

Yeah! See a example in /etc/samba/smb.conf:

--
[homes]
comment = Home Directories
read only = No
browseable = No
[2k]
comment = Programas 2K para teste em servidor Linux
path = /home/tiago/2k
public = yes
guest ok = Yes
writable = yes
force create mode = 777
force directory mode = 777


Regard's
Tiago Cruz

Em Qui, 2003-03-13 às 17:18, María Isabel López Sánchez-Huete escreveu:
   Hi.
 
   Sorry: my level of english is not enough good. I hope you understand 
 what I mean.
 
   My question is: it's possible to share a subdirectory (and only one 
 subdirectory for every user) in the section [homes]?
 
   The version of samba which i'm working is 2.2.7a, over Solaris 8.
 
   Thanks in advance.
 -- 

[ ]'s

Tiago Cruz
Org. King de Contab. S/C Ltda.
www.linuxrapido.kit.net
Linux User #282636


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba