Hi, I have a samba server which is servicing window and linux machines. This server has /temp directory with 777 permission. This directory is used for file sharing among all users. This directory is shared in samba with file creation mask 755. When window machine writes to it, the file is correctly created as 755, but when linux machine writes to it the file is created as 700. This file can not be read by other users. What needs to be done for linux machine to write as 755? Thanks in advance for the suggestions.
Warm Regards, Mukund Deshmukh, Beta Computronics Pvt Ltd, 10/1 IT Park, Parsodi, Nagpur -440022.
On Monday 24 Aug 2009, Mukund Deshmukh wrote:
Hi, I have a samba server which is servicing window and linux machines. This server has /temp directory with 777 permission. This directory is used for file sharing among all users. This directory is shared in samba with file creation mask 755. When window machine writes to it, the file is correctly created as 755, but when linux machine writes to it the file is created as 700.
How are the Linux machines accessing this folder? smbfs/cifs or nfs?
This file can not be read by other users. What needs to be done for linux machine to write as 755? Thanks in advance for the suggestions.
Check the Linux users umask setting.
How are the Linux machines accessing this folder? smbfs/cifs or nfs?
CIFS
This file can not be read by other users. What needs to be done for linux machine to write as 755? Thanks in advance for the suggestions.
Check the Linux users umask setting.
= Will check it, but then it will system wide, I mean all files will be written as 755.
Warm Regards, Mukund Deshmukh, Beta Computronics Pvt Ltd, 10/1 IT Park, Parsodi, Nagpur -440022.
Mukund Deshmukh wrote:
When window machine writes to it, the file is correctly created as 755, but when linux machine writes to it the file is created as 700. This file can not be read by other users. What needs to be done for linux machine to write as 755?
You might need to put all users in one secondary group and change recursive ownership of /tmp to root:that_group. If tmp is system created and locked, you could use a new folder for sharing.
You might need to put all users in one secondary group and change recursive ownership of /tmp to root:that_group. If tmp is system created and locked, you could use a new folder for sharing.
Is that so complicated? But this situation is common, and existing almost every where? Why samba is not using file creation mask 755 specified in smb.conf?
Warm Regards, Mukund Deshmukh, Beta Computronics Pvt Ltd, 10/1 IT Park, Parsodi, Nagpur -440022.
Mukund Deshmukh wrote:
You might need to put all users in one secondary group and change recursive ownership of /tmp to root:that_group. If tmp is system created and locked, you could use a new folder for sharing.
Is that so complicated? But this situation is common, and existing almost every where? Why samba is not using file creation mask 755 specified in smb.conf?
As Arun had asked, how do your Linux machines talk to the Samba machine?
As Arun had asked, how do your Linux machines talk to the Samba machine?
Shares are mounted as mount.cifs ...................user=xxx,pass=xxx,uid=0,gid=0
Any problem with uid gid? By the way linux machines are running slax and puppy linux, and it has only root user.
Warm Regards, Mukund Deshmukh, Beta Computronics Pvt Ltd, 10/1 IT Park, Parsodi, Nagpur -440022.
On Tue, Aug 25, 2009 at 3:17 PM, Mukund Deshmukhmukund.deshmukh@gmail.com wrote:
As Arun had asked, how do your Linux machines talk to the Samba machine?
Shares are mounted as mount.cifs ...................user=xxx,pass=xxx,uid=0,gid=0
Would specifying umask=<mask> with the mount options help?
Any problem with uid gid? By the way linux machines are running slax and puppy linux, and it has only root user.
Regards, Mohan S N
Mukund Deshmukh wrote:
As Arun had asked, how do your Linux machines talk to the Samba machine?
Shares are mounted as mount.cifs ...................user=xxx,pass=xxx,uid=0,gid=0
Any problem with uid gid? By the way linux machines are running slax and puppy linux, and it has only root user.
Puppy Linux in a networking environment? Anyway, why have you given root's uid and gid for mounting? This link below has various options you could try out.
http://opensuse.swerdna.org/susesambacifs.html
Puppy Linux in a networking environment? Anyway, why have you given root's uid and gid for mounting? This link below has various options you could try out.
Indeed, a great link.
Slax and puppy are great distro for old machine. You can customized, and boot from USB stick. Once you have samba sever, you don't need CD / HDD on client machine.
Warm Regards, Mukund Deshmukh, Beta Computronics Pvt Ltd, 10/1 IT Park, Parsodi, Nagpur -440022.
On Tue, Aug 25, 2009 at 7:17 PM, Mukund Deshmukh mukund.deshmukh@gmail.comwrote:
As Arun had asked, how do your Linux machines talk to the Samba machine?
Shares are mounted as mount.cifs ...................user=xxx,pass=xxx,uid=0,gid=0
Any problem with uid gid? By the way linux machines are running slax and puppy linux, and it has only root user.
Out of curiosity, I looked up slax and couldn't resist downloading it and burning it into a CD. I must say it is a bomb. Out of its many boot options, it has one where the cd is copied to the RAM (min. required 330MB) and that frees the CD drive so that one can use it for burning data from HDDs in the live session itself. It uses kde and a 2.6.27 kernel so new hardware should not be a pproblem. After some hiccups, I managed to login via gui into a user created later ( The system has only root) and vice versa. After a long time I came across a distro that has vi working out of the box. It has mc for those who like it. Overall a very good utility for taking backups into CDs or simply using a light weight but serious distro with user mode.
Anyway coming to the point, you could use the gui utility to 'Add a network folder' in 'Remote Places' using the correct protocol. Then see how new files get permissions in your destination folder.