Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba Logon Script

Status
Not open for further replies.

wizzardkid

Vendor
Nov 25, 2003
4
PH
I need some help on using a logon script.

My server is running on RedHat9 with Samba 2.2.7a-7.9.0 i can browse my files using a windows 2k pro box, my files are located on rh9 box.

But I want to put a logon script on it, so that I dont have to type \\ipaddress\ and also to map the directory from linux to windows.

Here is the structure of my system:

\usr\inventory
|
- Users
| |-wizkid
- Fox
- App1
| |-sub
- App2
- App3
- App4

wr users, fox, app* are folder which contains some dbf files and batch files

All I want to do is Map the Users (winzkid) folder to drive f:\ and other folder like App1, App4 but I do not want to map everything in inventory folder. It is depends on users rights if they should access which and what folders, this I plan to put in the logon script.

Where in the server should i put the scripts and how to configure it, once the user logs in to the server the logon script will automatically run.

Any help will be highly appreciated.

Thanks :)


 
Please read the samba documentation.

Is this the only server on the network? if it is then you are attempting to set it up as a PDC (primary domain controller). if it isn't then you don't have the option of running login scripts when the clients attempt to map the shares.

As far as permissions and mapping goes, you accomplish what you want with a combination of linux permissions and defining multiple shares, then have the windows machines attach those shares automatically when they restart.
 
Thanks for the reply. Do I still need samba if I setup PDC on my linux machine? wr could I get the documentation regarding this one?

Wr can I setup linux permission and defining miltiple shares? Thanks

 
linux file permissions are as defined in the file system: see the 'chmod' command for altering these (e.g. [tt]chmod 755 /usr/filename.doc[/tt])

The remote sharing permissions are as defined in your samba conf file.

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Samba is what you need to make the linux machine a PDC.
Please read the samba doc's...I know they are long but just about everything is covered very well....there are also various HOW-TO's available...just google for them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top