Ubuntu - Samba folder permission
Hello!
I need a bit of help here. I have installed Ubuntu Server edition dual boot with Windows XP. I mounted my shared partition on fat32. When it is booted in Ubuntu, the users (all windows) can't access to it, only the first user i created can. I managed to let another user access the shared folders in Ubuntu (the fat32 partition), and added that user in Samba (smbpassword -a username). Then edited the smbconfig, and gave write list and valid users those two usernames. But my second user can't access anything yet, he/she can access those folders when logged on in ubuntu, but not over the network with Samba's username and password. Am i making myself clear? Can anyone help? Thank you very much!! |
Is the share located on the Ubuntu server? If so, make sure that the you allow "o" others to read/write to the directory. You don't want the Linux permissions of the directory to be more restrictive than the share.
There are several things that you left out of your post. Is the share one that anyone can access? Are you using SECURITY=share or SECURITY=user? Look and see if you have a samba-doc package. If not, maybe you still have 3 books supplied by the samba package instead. If not, you can download the book "Samba 3 by Example". One of the first two examples may resemble what you want to do. For example, there is a share that allows guest access. To make things simple, it uses "force user" and "force group" to match the user/group ownership of the directory: Code:
# Global Parameters − Newer Configuration
If the partition is fat32 so that you can access it when running windows on the machine, then you can use the "umask" and "fmask" option on the partitions entry in /etc/fstab. If you are using "security = user" look in the smb.conf manpage for "write list" Code:
write list (S) |
The thing is, i cant change the folder permissions to give others rights, i have tried a hundred times, but i cannot, not through the interface and not through the command line...
I'll check the rest and i'll keep posting anyway. Thanks! |
By the way, i have security = user and all the users in the write list option for the folders being shared.
About the filesystem, i heard that the only way that Linux AND windows can read and write into a file is if the filesystem is fat32???? |
Quote:
What is the "ls -ld" listing of the directory that you are sharing. If you use the "umask" and "fmask" options you can enable others to write to the disk. Then using "read only = no" may enable the user to write to the disk. There is also the "write list =" entries. Also check the samba logs. They may indicate why access is denied. |
Hello jschiwal!
It made it work. I read somewhere that all the computers had to be in the same workgroup, i didnt have the server in a workgroup, joined it and worked! Thank you very much for your help! |
All times are GMT -5. The time now is 08:00 PM. |