Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Samba Users And Groups
Corey
post Jun 16 2004, 01:15 PM
Post #1


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



Okay, i've been at this for a while, trying to get it to work, but so far no good.

I have a samba server running Debian 3.0, and two client computers, one running Windows XP and one running a dual-boot of Xp&suse.

On the server, I have two main directories being shared out, /var/shared which is common files that both client computesr need access to, and /var/www which only one of the machines needs access to. What I want to do is to have two users "blew" and "duende", both of them to have access to /var/shared (read&write) and only "duende" to have access to /var/www

How can I do this in samba?


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post
Robert83
post Jun 16 2004, 01:30 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

you can do this

[share]
path=/var/www
hosts allow = 192.168.0.4/32(?), 127.0.0.1
hosts deny = 0.0.0.0/0

or you could do it like this

smbpasswd -a duende (then enter a code here , not your code, another one shall do)

and
[share]
path=/var/www
user = duende
guest ok = no
create mode = 0777
directory mode = 0777
browseable = yes (or no If you don't want others to even see it, including youreself...you can still connect to it by typing ipadressofcomputersharename
writable = yes

I think in this case you will need to change security=user in the global options
this way only user with ip adress 192.168.0.4 will be able to connect to /var/www
everyone else is denied

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th October 2017 - 09:46 AM