Hi, I'm new to CentOS and also on the list, since I usually work with Debian. My problem is as follows: I have a NAS where users connect to do their backups. Each user has a folder shared where only he can enter. Multiple users get connected from a CentOS 5.7 to the NAS, each in its shared folder. I connect to the NAS by entering the login, password and shared folder of user A (here I connect through SMB port 445) and I get disconnected by removing the volume. I re-connect in the same way with the user B and then disconnect. Now if I connect with any user without entering the shared folder (I get a netbios connection to port 139) I can enter to the shared folder of user A and B without entering their credentials. A netstat -an shows me a connection to port 139 and 445 per user. After a while (too I think) connections over ports 445 and 139 are automatically cuted and I have to authenticate again. How I can force always the request of login and password? Thanks in advance. -- Francesc Guitart
Le 23/11/2011 12:11, Guitart Francesc a ?crit :> Hi, > > I'm new to CentOS and also on the list, since I usually work with Debian. My problem is as follows: > > I have a NAS where users connect to do their backups. Each user has a folder shared where only he can enter. Multiple users get connected from a CentOS 5.7 to the NAS, each in its shared folder. > > I connect to the NAS by entering the login, password and shared folder of user A (here I connect through SMB port 445) and I get disconnected by removing the volume. I re-connect in the same way with the user B and then disconnect. > > Now if I connect with any user without entering the shared folder (I get a netbios connection to port 139) I can enter to the shared folder of user A and B without entering their credentials. >In fact I have explained wrong. This time I log in from any window File >> Go to .. (I don't know the exact translation in english cause I'm in one french computer) and type smb://nas_name. I can access to the NAS and I can enter all the shared folders of all users that I previously had been logged from "Connect to server" Thanks again. -- Francesc Guitart
On 11/23/11 3:11 AM, Guitart Francesc wrote:> here I connect through SMB port 445why in dogs name are you using SMB, a Microsoft Windows protocol, for Unix to NAS file sharing? Unix systems should use NFS for file sharing. netbios is a tangled mess of poorly planned protocols with extensions on the extensions, and warts on the warts (ports 137/138/139 were old NetBIOS, using NetBIOS-over-TCP aka NBT as the transport, while port 445 is the newer native CIFS protocol introduced around Windows2000 time). with NFS, you'd mount the backup directory somewhere, like /nfsbackups just once at bootup time and each user would have their own directory in it, /nfsbackusp/fred (or whatever) and only have read/write access to that directory, managed via standard unix style chmod, chown ... -- john r pierce N 37, W 122 santa cruz ca mid-left coast
Dear Guitart, You have Microsoft Windows on your mind . . . Microsoft has left the building! ----- Original Message ----- From: Guitart Francesc Sent: 11/23/11 05:11 AM To: centos at centos.org Subject: [CentOS] Forget SMB password immediately Hi, I'm new to CentOS and also on the list, since I usually work with Debian. My problem is as follows: I have a NAS where users connect to do their backups. Each user has a folder shared where only he can enter. Multiple users get connected from a CentOS 5.7 to the NAS, each in its shared folder. I connect to the NAS by entering the login, password and shared folder of user A (here I connect through SMB port 445) and I get disconnected by removing the volume. I re-connect in the same way with the user B and then disconnect. Now if I connect with any user without entering the shared folder (I get a netbios connection to port 139) I can enter to the shared folder of user A and B without entering their credentials. A netstat -an shows me a connection to port 139 and 445 per user. After a while (too I think) connections over ports 445 and 139 are automatically cuted and I have to authenticate again. How I can force always the request of login and password? Thanks in advance. -- Francesc Guitart _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
On Monday, November 28, 2011 11:23:57 AM Les Mikesell wrote:> Even if all the users are working at the same > console, they should have different logins.You know, reading through this thread is frustrating. Frustrating in that the OP's question has yet to be answered; instead, yet again, the OP's methods are being questioned. The OP is doing things a particular way for a reason; a useful answer is better than questioning the OP's methods, IMO. And while I wouldn't do it the way the OP is doing it, that's the OP's business, it would be nice to see people give people more 'benefit of the doubt' rather than assume that because the OP isn't doing it the 'regular way' that the OP doesn't know what he's doing. He may have neither the time nor the budget to: 1.) Retool the login user; 2.) Retrain users to login as their own user; 3.) Set up the authentication necessary to do it 'right' instead of the way that seems to be working for him. So, it seems the question boils down to: In a shared local login account situation, how can one set up Nautilus to forget SMB credentials between certain times? Whether you agree with the setup or not is immaterial; this is the way the OP needs to do things in his situation. TMTOWTDI
On Wednesday, November 23, 2011 06:11:31 AM Guitart Francesc wrote:> How I can force always the request of login and password?In System -> Administration -> Authentication, 'Options' tab, is 'Cache User Information' checked?