markdavidoff
June 3rd, 2009, 06:16 AM
I am trying to set up a new fileserver. I understand that samba has some method of checking the windows username (and password?) with the accounts that are on the fileserver.
What I need:
My last fileserver had the same username and password as my windows computer that accessed it. It was set up in a way so that anyone on the share had "full access"
[global]
security=share
[public]
comment = Public Share
path = /home/public
browseable = yes
guest ok = yes
read only = no
except, my user on the fileserver (with the same name and password as my windows computer) was the only one with unix read/write/execute access.
Therefore, only my windows computer with the same username and password was able to write to the directory. All the other windows computers had read access only.
Now for the problem:
My new fileserver setup is different. I installed ubuntu desktop edition on it instead of server edition. I wanted full access to anyone physically using the fileserver machine to modify the shared drive. This is fine, i just gave full permissions to the drive. However, I don't want my network users having write access, so I decided that would be handled by my smb.conf.
However, I am having problems getting samba to recognize my windows computer. The new fileserver hasn't got the same username and password on it, so I created a user on that machine with the same username and password. I want it set up like my last server - samba will detect that my username and password on my windows computer is valid for write permissions automatically.
my new smb.conf:
[Global]
security=share
[Share]
comment = Shared Media
path = /media/Media
browseable = yes
guest ok = yes
read only = yes
write list = mark
So what I have here is the opposite to my last set up:
I am using desktop edition instead of server edition
Samba is setting the drive as read-only (except for the write list) instead of read-write
The drive itself has unix permission based full access, instead of unix permission based user only access
What I did:
I apparently needed to install libpam-smbpass, so I did that.
I mounted the drive with full-access permissions on the server
I created a smb.conf which would allow only read access to this drive, except for the users on the write list
I added a new user on the fileserver using the "Users and groups" admin tool.
I can log in to the drive on my windows computer (with the same username and password as the user on the write list), but I cannot modify files.
It is a problem with my samba set up. I can modify files if I turn read only off in the smb.conf file.
I also browsed to /var/log/samba/log.(computername)
and it says:smbd/service.c:make_connection_snum(1111)
(computername) (computerIP) connect to service NEWSERVER initially as user nobody
It is not detecting my username!
On my old fileserver, the same log file read:
smbd/service.c:make_connection_snum(1111)
(computername) (computerIP) connect to service OLDSERVER initially as user mark
So what can I do so that it will detect my username?
What I need:
My last fileserver had the same username and password as my windows computer that accessed it. It was set up in a way so that anyone on the share had "full access"
[global]
security=share
[public]
comment = Public Share
path = /home/public
browseable = yes
guest ok = yes
read only = no
except, my user on the fileserver (with the same name and password as my windows computer) was the only one with unix read/write/execute access.
Therefore, only my windows computer with the same username and password was able to write to the directory. All the other windows computers had read access only.
Now for the problem:
My new fileserver setup is different. I installed ubuntu desktop edition on it instead of server edition. I wanted full access to anyone physically using the fileserver machine to modify the shared drive. This is fine, i just gave full permissions to the drive. However, I don't want my network users having write access, so I decided that would be handled by my smb.conf.
However, I am having problems getting samba to recognize my windows computer. The new fileserver hasn't got the same username and password on it, so I created a user on that machine with the same username and password. I want it set up like my last server - samba will detect that my username and password on my windows computer is valid for write permissions automatically.
my new smb.conf:
[Global]
security=share
[Share]
comment = Shared Media
path = /media/Media
browseable = yes
guest ok = yes
read only = yes
write list = mark
So what I have here is the opposite to my last set up:
I am using desktop edition instead of server edition
Samba is setting the drive as read-only (except for the write list) instead of read-write
The drive itself has unix permission based full access, instead of unix permission based user only access
What I did:
I apparently needed to install libpam-smbpass, so I did that.
I mounted the drive with full-access permissions on the server
I created a smb.conf which would allow only read access to this drive, except for the users on the write list
I added a new user on the fileserver using the "Users and groups" admin tool.
I can log in to the drive on my windows computer (with the same username and password as the user on the write list), but I cannot modify files.
It is a problem with my samba set up. I can modify files if I turn read only off in the smb.conf file.
I also browsed to /var/log/samba/log.(computername)
and it says:smbd/service.c:make_connection_snum(1111)
(computername) (computerIP) connect to service NEWSERVER initially as user nobody
It is not detecting my username!
On my old fileserver, the same log file read:
smbd/service.c:make_connection_snum(1111)
(computername) (computerIP) connect to service OLDSERVER initially as user mark
So what can I do so that it will detect my username?