Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Network share on redhat

  • 16-09-2010 3:07pm
    #1
    Closed Accounts Posts: 4,235 ✭✭✭


    Right here is the story.

    Two machines. 1 redhat the other windows 2003.

    There is a shared directory on the windows 2003 machine that I want to mount as a share. I can do this no problem as root, works every time but I want to do it as another user in which case I always get back:

    mount: only root can do that

    Now I've tried various entries in the fstab to work around it but still can't get another user other than root to mount this directory.

    Any ideas?


Comments

  • Closed Accounts Posts: 238 ✭✭eightcell


    Add this to the /etc/sudoers file:
    Cmnd_Alias MOUNT_SMB = /bin/mount -t smbfs -o uid=iregk *
    iregk  ALL=(ALL) NOPASSWD: MOUNT_SMB
    


  • Closed Accounts Posts: 4,235 ✭✭✭iregk


    No joy. Added that in there still saying only root can do that.

    Even gave it a reboot just to be sure and same thing.


  • Registered Users, Registered Users 2 Posts: 425 ✭✭Mathiasb


    iregk wrote: »
    No joy. Added that in there still saying only root can do that.

    Even gave it a reboot just to be sure and same thing.

    Did you use sudo? (as you edited the sudoers file)


  • Closed Accounts Posts: 4,235 ✭✭✭iregk


    yup, no joy.


  • Registered Users, Registered Users 2 Posts: 24 xonet


    Is your Samba username same as your username?


  • Advertisement
Advertisement