Samba Users & Log File Issue
Samba Users & Log
I'm using Ubuntu 10.10 with samba enabled in it, every staff member has his own UserId & Password. I'm using user nobody and nogroup so may the shared files can be used by every one. Now the problem is that i'm also making samba audit log by Sambauser & Ip address and it's making with log with user nobody. I have changed my shared files with user & group root by doing this my log is working fine i mean that it's making with the user name, but the problem is if User A is making any file so it's read only to User B. Kindly let me know the solution. |
You can add main group of user A as supplimentry (secondary) group for user B. It should possibly solve the pb.
To check user A's primary group: Code:
~$ id -a A Code:
~$ usermod -G <groupname> B |
is it necessary to change shared files permission from no body to root ??
and i have a group named Admin-Department,User A & User B are the member of that group but still i'm facing the same problem?? and i have more than 100 users so what should i do ?? |
- Is Admin-Department a primary group for both A and B?
- If Admin-Department is primary for both, then does file(s), created by A, have full permissions for group? Well, if addition of a user to main group of the file solves the problem, then you can add all 100 users to the group (don't worry, a simple script will do that). |
User A & User B both are the members of that group but i dont have any idea about primary groups..??
& i have given User=root & group=root to my files, and if User A created any files is read only to user B and both are the members of same group. I have created few groups just like admin-department, Tax-Users, Audit-Users & Corporate-Users and i have added my users to these groups but i don't have any idea about primary group, can i do this that first i create new group and add all user to that group and make it users primary group, will it solve my problem ?? |
First of all post output of:
Code:
~$ id -a A Once check manual of following: chmod and chown |
Quote:
|
Add user mahmood to primary group of majid, as:
Code:
~$ usermod -G majid mahmood Code:
~$ touch sample.txt |
I did the same thing as you said, i can copy, move and delete the file, but files are still read only.
|
File permissions do not change if you move or copy them, but it remains what was set originally.
If a file has read only permissions, then first change it to r/w and then try to copy or move. Also check user A i.e. majid's umask value, becuase all files created by majid will get their permissions assigned on basis of umask value set in majid's profile. Code:
~$ grep umask /home/majid/* |
I have changed my Unix File & Directory mode to 755 to 777 and the read only issued is resolved, but now my samba recycle is not working..
|
Quote:
|
All times are GMT -5. The time now is 08:23 AM. |