Using the .netrc file
Rats! Does anyone know how to have the same machine name with two different users in an .netrc file?
i.e., machine sgofftp02.xxx.xxx.com login car0071 password whatever machine sgofftp02.xxx.xxx.com login crp0054 password whatever The solution to the 'get the users/passwords' out thread I started awhile back was to use the .netrc file. Only now I find THIS issue! Can you help? |
Answer to a dumb question...
Due to the dead silence out here, I think this is a dumb question - how would ftp know which one to pick?? So thanks for reading...I will go about changing the ids instead!
|
As root you can change the passwords to the users account without changing the id's. Also to get a response you have to be more detailed , as in the operating system that you're working with.
|
Oh, sorry! This is on a Linux box - not sure how to tell what version it is? Anyway, I've been able to disable the other id for two duplicates so that solves my problem. BUT I have another question. When you do the ll command and you are on a directory of just more directories, what does the date mean?
drwxr-xr-x 3 edi harbprd 4096 May 18 2011 830 drwxr-xr-x 3 edi harbprd 4096 May 18 2011 846 drwxr-xr-x 3 edi harbprd 4096 May 18 2011 850 drwxr-xr-x 3 edi harbprd 4096 May 18 2011 860 I've been told that on a FILE in a directory, the date is the last time that file was touched. Is it the same for the directory? In the above example, was May 18 2011 the last time the directory was touched or when it was created? There are no files on any of the directorys listed. And btw, why can't I find info on ll in my Linux book or just man pages? |
Open termial & enter this command.
Quote:
|
Code:
# This To check kernel version Code:
uname -a Code:
cat /etc/*release* The default date shown by the ls cmd is the mtime. Quote:
|
Aha!
Linux lgofcrpshr0 2.6.18-274.3.1.el5 #1 SMP Fri Aug 26 18:49:02 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux (1310)==> cat /etc/*release* cat: /etc/lsb-release.d: Is a directory Red Hat Enterprise Linux Server release 5.5 (Tikanga) Thanks so very much! I have put both in my notes so as not to forget. SO, the date shown on my directory listing would be the last time anything occurred - for example, if a file were put on any one of those directories, then the mtime would change. Wait a sec... let me try it! Aha! drwxr-xr-x 3 edi harbprd 4096 Dec 8 10:38 830 drwxr-xr-x 3 edi harbprd 4096 May 18 2011 846 drwxr-xr-x 3 edi harbprd 4096 May 18 2011 850 drwxr-xr-x 3 edi harbprd 4096 May 18 2011 860 I'm really glad to have found this forum! Makes it much easier than simply googling whatever question I have! You are very helpful and I'm grateful. |
No worries, you're welcome ;)
Now you're the expert when the next guys asks :) Remember, with great power comes great responsibility :) :) |
All times are GMT -5. The time now is 08:41 PM. |