LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-26-2004, 12:05 AM   #1
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
browseable home directories


My users' home directories are visible in Network Neightbourhood eventhough i have browseable = no, anybody knows why?
Code:
[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
I read that if i have $ at the end of the directory name, its won't be visible in network Neighbourhood, so can I put [homes$]?

Thanks in advance~
 
Old 07-26-2004, 12:23 AM   #2
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
guest ok = no
 
Old 07-26-2004, 03:39 AM   #3
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Original Poster
Rep: Reputation: 30
Sorry, mate~
That did not work...

I am wondering whether you come across this problem or not... i cannot see any home directories after i rebooted the PC... but when i start to logon one user at a time, the 2nd user sees the first user's home and the 3rd user sees both the 1st and 2nd user's home!
Of course user2 cannot access user1's home and vice versa, i just want to make it look tidy...
Any ideas?

Anyway, thanks for the reply
 
Old 07-26-2004, 05:13 AM   #4
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
Well, here is what I use for the home directories. If this does not work, I will post my entire smb.conf.

[homes]
comment = Home Directories
browseable = no
writable = yes
create mode = 0600
directory mode = 0700
valid users = %S
 
Old 07-27-2004, 11:07 AM   #5
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Original Poster
Rep: Reputation: 30
I am trying it now~

Just wondering... whats the difference between create mode and create mask?

Thanks for the reply
 
Old 07-27-2004, 05:29 PM   #6
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
I think that create mode is who can create new files and the create mask is what pemissions created files have, but I'm not sure
 
Old 07-27-2004, 07:43 PM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
No, they are the same, according to man smb.conf:
Quote:
create mode
This parameter is a synonym for create mask.


create mask (S)
When a file is created, the necessary permissions are calculated
according to the mapping from DOS modes to UNIX permissions, and
the resulting UNIX mode is then bit-wise 'AND'ed with this
parameter. This parameter may be thought of as a bit-wise MASK
for the UNIX modes of a file. Any bit not set here will be
removed from the modes set on a file when it is created.

The default value of this parameter removes the 'group' and
'other' write and execute bits from the UNIX modes.

Following this Samba will bit-wise 'OR' the UNIX mode created
from this parameter with the value of the force create mode
parameter which is set to 000 by default.

This parameter does not affect directory modes. See the parame-
ter directory mode for details.

Note that this parameter does not apply to permissions set by
Windows NT/2000 ACL editors. If the administrator wishes to
enforce a mask on access control lists also, they need to set
the security mask.

Default: create mask = 0744

Example: create mask = 0775
 
Old 07-27-2004, 07:48 PM   #8
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
You learn something new everyday. Personally, I don't like to use smb at all. I prefer to move my files by something more secure like scp. I guess that I could wrap the smb connection with ssl since all my windows boxes are running ssh though but that seams like a hassle, LoL. Thanks for the insight motub .
 
Old 07-27-2004, 07:52 PM   #9
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
You're welcome, but that doesn't explain why there's a synonym in the first place...? Seems weird to me.

What's scp and what's the benefit over Samba (yes, I guess I could look it up, but a user's-eye perspective is often more helpful than a man page )?
 
Old 07-27-2004, 08:58 PM   #10
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Original Poster
Rep: Reputation: 30
Ahh... more reading material
Thanks guys, i reckon i should spend some time with man pages before trying silly things

Archite:
The mode/mask does not work, i have the home directories set to drwx------ and both are owned by the user... still wondering whats wrong...
Mind if i look at your smb.conf?
Also would like to hear more about the scp you have mentioned! Sounds interesting

motub:
Do you have any suggestions?
 
Old 07-27-2004, 10:31 PM   #11
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
okay, say you have user1 who belongs to the group users. If you set his home directory to drwx------ then he will not be able to access his own direcotry. Quick fix, create a group called user1 and set user1's main group to user1.
 
Old 07-28-2004, 09:42 AM   #12
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Original Poster
Rep: Reputation: 30
oh, there's no problem with my users accessing their own home drives
The problem is users can see each others home in XP
 
Old 07-28-2004, 10:05 AM   #13
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
Have you tried playing with user level security? That should make it so that only authorized users see their own homes.
 
Old 07-28-2004, 07:00 PM   #14
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Original Poster
Rep: Reputation: 30
Oooh, interesting... where do I go in order to do that?
 
Old 07-28-2004, 07:06 PM   #15
Archite
Member
 
Registered: Jul 2004
Distribution: OpenBSD 3.5
Posts: 89

Rep: Reputation: 15
it's one of the general options..

security = user .


Check out this link for some more informative informating about samba:

http://us3.samba.org/samba/docs/using_samba/toc.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Sharing directories outside of /home... AudioMechanic Linux - Networking 1 03-16-2005 08:18 PM
home directories permissions black_man Debian 1 11-20-2004 09:48 AM
Samba and Home Directories dlucas10 Linux - Networking 5 10-28-2003 12:51 PM
sharing directories not in $HOME GTBlackwell Linux - Networking 2 10-23-2003 06:21 PM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration