Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Mount Your NTFS Shared Folders On AIX/UNIX Serv, Your zip or rpm or lpp files are downloa
yordan
post Dec 6 2006, 12:26 PM
Post #1


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,886
Joined: 16-August 05
Member No.: 7,896



On your PC in your office, you have a lot of rpm's, as well as the last Oracle patch you just downloaded from Metalink. These files are on a shared folder, and you would like to access this folder directly from your AIX servers, in order to avoid useless file transfers.
The solution is rather simple, for instance see here : http://unix.ittoolbox.com/groups/technical...n-aix-52-601827
QUOTE
# mount -v cifs -n winserver/myuser/mypassword /home /mnt
and it works fine

And that's right, it worked perfectly on my AIX server.
Of course, you had to work a little bit before that :
On your PC, you have to create a user, for simplicity let's name this user "myuser", his password is "mypassword". You also have to create a shared resource named "home" (on my PC it's named CX500).
On the AIX server, verify that you have the cxfs lpp :
CONSOLE
# lslpp -l *cifs*

you should see something like " bos.cifs_fs.rte 5.3.0.50 COMMITTED Runtime for SMBFS".
If cifs is not installed, you will have to use smit install (with the AIX CD inserted) in order to install it.
And I don't use the /mnt mountpoint, I use /remote, don't forget "mkdir /remote" first.
Then, just typing the "mount" command mounts the PC/NTFS file on your AIX mountpoint.
So, everybody can "cd /mnt ; vi myfile.txt", you will see that the user has read and write permission. Which is normal, the mount command give a regular Windows username and password.
By the way, if you don't type the /mypassword part in the commandline, you are prompted for the Windows myser passwod, and you type it blindly, which is better from a security point of view.
Isn't this nice ? AIX users can startup the install of Oracle patches downloaded on the PC, and the user on the PC can read the comments from files written by the AIX/Unix users.
A nice collaboration between Unix and Windows worlds
Go to the top of the page
 
+Quote Post
xboxrulz
post Dec 6 2006, 10:10 PM
Post #2


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,626
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233



this script also works with Linux.

xboxrulz
Go to the top of the page
 
+Quote Post
yordan
post Dec 8 2006, 01:03 PM
Post #3


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,886
Joined: 16-August 05
Member No.: 7,896



QUOTE(xboxrulz @ Dec 6 2006, 11:10 PM) *

this script also works with Linux.

xboxrulz

So, one more time, evidence that, once you master one kind of Unix language, you can survive with the other Unix flavors.

This post has been edited by yordan: Dec 11 2006, 08:10 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Switch Network Settings With Batch Files(16)


 



- Lo-Fi Version Time is now: 6th July 2008 - 07:14 AM