Hi there
I have searched high and low to my problem and although I have seen many forums threads with a similar title as my own, I have yet to fix my problem…
I am running SLES9 64bit and want to access (through winXP) files that are located on the SAN. The SAN drive is mounted as /data and this is the folder I want to share.
I have configured Samba to share 2 folders following a HOW-TO guide to creating Samba shares. /data and /tmp
If I map these 2 shares in Windows XP, giving the usernames I have created on Linux and using smbpasswd -a … I can view the contents of the /tmp directory but I get the Access Denied error for the /data share.
I have given both folders the same ownership/group and chmod 777 just to keep things simple.
I have posted the smb.conf file below…
[global]
passdb backend = smbpasswd
wins server =
wins support = no
workgroup = ourwork
encrypt passwords = yes
map to guest = Bad User
username map = /etc/samba/smbusers
security = user
[data]
browseable = yes
comment = data
path = /data/
[test]
comment =
path = /tmp/
writeable = yes
browseable = yes
Out of curiosity I have tried changing the /data share to every other folder in the root of the server but only /tmp is the one that is accessible. This is driving me mad.
Any help or pointing out any glaring errors and mistakes would be appreciated.
Thanks for the replies. Ive had a chance to try badger_fruits example and the share works to the home directories, but as the /data directory is the mount to the 2TB data store that we need access to, sharing the home folders doesnt get me what I need :’(
I have kept all the global settings the same and just changed the path location to /data (and restarted services) but it still says access denied.
I would guess that kcampilans example would also work as it too shares /home… but again this doesnt give me what I need.
I am fairly new to Linux and am wondering if theres anything different (special?) between the permissions of the /home and /tmp directories to any other directory at / level?!
>
> Hi there
> I have searched high and low to my problem and although I have seen
> many forums threads with a similar title as my own, I have yet to fix my
> problem…
>
> I am running SLES9 64bit and want to access (through winXP) files that
> are located on the SAN. The SAN drive is mounted as /data and this is
> the folder I want to share.
>
> I have configured Samba to share 2 folders following a HOW-TO guide to
> creating Samba shares. /data and /tmp
>
> If I map these 2 shares in Windows XP, giving the usernames I have
> created on Linux and using smbpasswd -a … I can view the contents of
> the /tmp directory but I get the Access Denied error for the /data
> share.
>
> I have given both folders the same ownership/group and chmod 777 just
> to keep things simple.
>
> I have posted the smb.conf file below…
>
> [global]
> passdb backend = smbpasswd
> wins server =
> wins support = no
> workgroup = ourwork
> encrypt passwords = yes
> map to guest = Bad User
> username map = /etc/samba/smbusers
> security = user
> [data]
> browseable = yes
> comment = data
> path = /data/
> [test]
> comment =
> path = /tmp/
> writeable = yes
> browseable = yes
>
> Out of curiosity I have tried changing the /data share to every other
> folder in the root of the server but only /tmp is the one that is
> accessible. This is driving me mad.
>
> Any help or pointing out any glaring errors and mistakes would be
> appreciated.
>
> Cheers
> Andy
>
>
Andy;
It is not clear to me if you have resolved this or not. Here are my
suggestions:
Edit (as root) /etc/samba/smb.conf as follows:
[global]
workgroup = <your workgroup>
map to guest = Bad User
name resolve order = bcast host lmhosts
username map = /etc/samba/smbusers
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
os level = 65
preferred master = Yes
host msdfs = No
usershare allow guests = Yes
[data]
comment = Public Directory
path = /data
force group = users
read only = No
inherit acls = Yes
force create mode = 0775
force directory mode = 02775
guest ok = yes
Make the owner of /data “nobody” and the group “users” with mode 0777 This
should create a share in which everyone has read/write access.
> andysmalls wrote:
>
>>
>> Hi there
>> I have searched high and low to my problem and although I have seen
>> many forums threads with a similar title as my own, I have yet to fix my
>> problem…
>>
>> I am running SLES9 64bit and want to access (through winXP) files that
>> are located on the SAN. The SAN drive is mounted as /data and this is
>> the folder I want to share.
>
> Make the owner of /data “nobody” and the group “users” with mode 0777 This
> should create a share in which everyone has read/write access.
>
> You should also look at the following tutorial(s):
> http://www.swerdna.net.au/linux.html
> or
> http://www.pcc-services.com/sles/samba.html
> for additional help.
Addendum:
I had not got it working, but I do now thanks to you. Apparmor was the culprit. Never even knew about this software. Cannot believe something as simple as ticking a disable checkbox would be the answer!
Thanks for all of your replies and drinks are on me.
>
> PV
>
> I had not got it working, but I do now thanks to you. Apparmor was the
> culprit. Never even knew about this software. Cannot believe something
> as simple as ticking a disable checkbox would be the answer!
>
> Thanks for all of your replies and drinks are on me.
>
> Cheers
> Andy
>
>
Andy;
Glad you have it working. SLES/SLED have their own forums at forums.novell.com;
in the future you might have better luck posting there. These forums are aimed
at OpenSuse.