Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I want this command line to be start at user login mount -t smbfs -o user //m00-01/Services /mnt/g please help ME!!!!!!!!!!!!!!!!!!!!!!!! tks! Blanki...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    vse
    vse is offline
    Just Joined!
    Join Date
    May 2004
    Posts
    2

    AUTO SCRIPT AT LOGIN


    Hello,

    I want this command line to be start at user login

    mount -t smbfs -o user //m00-01/Services /mnt/g

    please help ME!!!!!!!!!!!!!!!!!!!!!!!!

    tks!

    Blanki

  2. #2
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    Write a short bash script that executes that command. Then place a call to that command in .bash_profile of which ever users you want to.

    You'll have to change /mnt/g to something more like ~/mnt/g, but that shouldn't be to big a problem. The reason is, you can't mount a share as user to a directory that's not that users. So you may have to write your script to first check for the mount point and create it if it doesn't exist.

    You could just set it up to automount on boot, and give all users access.
    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •