SAMBA Mount


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SAMBA Mount
# 1  
Old 11-12-2009
SAMBA Mount

Hi,

Please can somebody advise me on the issue where I have a Samba mount created for one of the directories with read only access to all the IP's in the network.

Now beside read only access I want to provide Modify access also for two IP's.

Please advise.

Best Regards,
Shazin
# 2  
Old 11-12-2009
What advice to you need, specifically?
# 3  
Old 11-12-2009
Hi Neo,

What exactly can we make changes in smb.conf to keep read only access to all the IP's and modify access to the two IP's.

Thanks,
Shazin

---------- Post updated at 02:32 PM ---------- Previous update was at 02:30 PM ----------

Hi Neo,

Current configuration is:

Code:
path = /export/home/ctsdb/reports

        guest ok = Yes

        read only = No

Thanks,
Shazin
# 4  
Old 11-12-2009
To make the a directory in SAMBA readable by the public, but only writable by people in group "TEAM", modify smb.conf this way:
Code:
    [public]
       comment = Team Writable
       path = /home/public
       public = yes
       writable = yes
       printable = no
       write list = @TEAM

# 5  
Old 11-12-2009
Hi Neo,

Thanks, please can you also advise how to include the two IP address in Team.

Best Regards,
Shazin
# 6  
Old 11-12-2009
You cannot include IP addresses in the group ID in a SAMBA configuration. If you want additional restriction based on IP address, you might consider using ipchains to block access, and then user usergroup configuration for read/write access.

This SAMBA smb.conf reference should be useful to you.

---------- Post updated at 18:44 ---------- Previous update was at 17:31 ----------

I forgot to mention hosts allow in the SAMBA config file.

Quote:
A synonym for this parameter is allow hosts.

This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service.

If specified in the [global] section then it will apply to all services, regardless of whether the individual service has a different setting.

You can specify the hosts by name or IP number. For example, you could restrict access to only the hosts on a Class C subnet with something like allow hosts = 150.203.5.. The full syntax of the list is described in the man page hosts_access(5). Note that this man page may not be present on your system, so a brief description will be given here also.

Note that the localhost address 127.0.0.1 will always be allowed access unless specifically denied by a hosts deny option.

You can also specify hosts by network/netmask pairs and by netgroup names if your system supports netgroups. The EXCEPT keyword can also be used to limit a wildcard list. The following examples may provide some help:

Example 1: allow all IPs in 150.203.*.*; except one

hosts allow = 150.203. EXCEPT 150.203.6.66

Example 2: allow hosts that match the given network/netmask

hosts allow = 150.203.15.0/255.255.255.0

Example 3: allow a couple of hosts

hosts allow = lapland, arvidsjaur

Example 4: allow only hosts in NIS netgroup "foonet", but deny access from one particular host

hosts allow = @foonet

hosts deny = pirate
Note

Note that access still requires suitable user-level passwords.

See testparm(1) for a way of testing your host access to see if it does what you expect.

Default: hosts allow = # none (i.e., all hosts permitted access)

Example: hosts allow = 150.203.5. myhost.mynet.edu.au
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to mount nas-share using generated credentials (mount EC 13,32)

Heyas At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it. EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...). Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies

2. Red Hat

Samba won't mount after reboot...please help

I am able to mount samba but it just won't mount when i reboot system what is stopping it from mounting after reboot? I mounted before reboot but right after reboot...i ran mount # mount /dev/mapper/vg_sda2-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs... (0 Replies)
Discussion started by: nokia3310
0 Replies

3. UNIX for Dummies Questions & Answers

Samba Mount

To acces my linux folders on windows I did samba setup on my linux machine and it shows no error on linux system. But when I try to map the linux system on windows it shows error "Network location could not be reached." I used the link... (6 Replies)
Discussion started by: rupeshkp728
6 Replies

4. UNIX Desktop Questions & Answers

Can't mount samba on AIX with ntlmv2

Hi guys, I'm trying to mount a share from Win2003 on AIX with ntlmv2. It doesn't seem to work as Windows keep complaining about a wrong username/password. I've added "client ntlmv2 auth = yes" to smb.conf. I have tested the account/username/hostname/ip address with smbclient and it seems... (4 Replies)
Discussion started by: kress
4 Replies

5. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

6. Solaris

Is it possible to setup a samba share to always mount to a specific Windows drive letter???

I'm trying to setup Samba in a solaris zone... Is there a way to setup Samba so that every Windows machine that tries to connect to the share always gets it mounted under the same drive letter (e.g. H:)??? My Samba share (in smb.conf) /home/pickup I want that all Window users get it mounted... (3 Replies)
Discussion started by: verdepollo
3 Replies

7. UNIX for Advanced & Expert Users

mount -t cifs permission denied by mount -t smbfs works fine

I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password="" mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies

8. Red Hat

Mount Windows share on Redhat, WITHOUT Samba?

Hi, Please let me know whether I can mount a windows share on Redhat, which does not have Samba installed. The constraint is that I cannot install Samba . Looking forward for a possible solution. (1 Reply)
Discussion started by: jksena
1 Replies

9. Solaris

How to mount windows Share on solaris using SAMBA

Hi All I am new for Solaris and, I have configured SAMBA on my SUN10 Network machine and it's working fine. can anyone tell me how to mount windows share on my SUN10 machine. Thanks in advance daya (2 Replies)
Discussion started by: daya.pandit
2 Replies

10. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

Hi... question is this: How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure. ... (4 Replies)
Discussion started by: soulshaker
4 Replies
Login or Register to Ask a Question