How to allow users to mount a Samba shares on a WXP

Through lots of reading I've managed to get an understanding of how to mount SMB shares at bootup by placing the proper edits in /etc/fstab. While having the shares of the server, running Contribs.org SME Server 6.01 (recently known as Mitel SME Server) and acting as a samba server, being mounted at startup is perfect since the server is always on. This is not the best idea for the XP workstation since it isn't always on. Here is a copy of my present fstab file with x's replacing the passwords.
fstab               [B---]  0 L:[  1+19  20/ 21] *(1085/1086b)= .  10 0x0A
# /etc/fstab: static file system information
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /proc         proc      defaults            0      0
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0
tmpfs                  /tmp          tmpfs     defaults            0      0
sysfs                  /sys          sysfs     defaults            0      0
usbdevfs               /proc/bus/usb usbdevfs  defaults            0      0
/dev/cdroms/cdrom0     /mnt/cd   iso9660   ro,user,noauto,unhide   0      0
/dev/cdroms/cdrom0     /mnt/dvd  udf       ro,user,noauto,unhide   0      0
/dev/floppy/0          /mnt/fl   vfat      user,noauto,unhide      0      0
//192.168.2.2/stuff    /mnt/silicon2 smbfs username=kingnubian,password=xxxxxxx,user
//192.168.2.105/e-smith   /mnt/silicon1 smbfs username=kingnubian,password=xxxxxxx,users,noauto
/dev/discs/disc0/part5 swap swap defaults 0 0
/dev/discs/disc0/part1 / xfs defaults 0 1
I would like users with an account on the Linux box to mount the remote share on the XP box without needing to SU and consequently need the root password. When trying now to mount "e-smith" (The share on the XP box) as a user using "mount /mnt/silicon1" I get a message about needing to be SU.

To allow users to mount smb shares you need to make smbmnt suid:
# chmod +s /usr/bin/smbmnt
Note however that the user needs to own the directory used as mountpoint. So I don't know how to make 'mount /mnt/silicon1' in your setup work for all users.
For the users to be able to unmount the smb shares as well you need:
# chmod +s /usr/bin/smbumount
Now users can do 'smbmount //server/share mountpoint -o username=whatever' or simply 'mount mountpoint' if the details are specified in fstab. To unmount root can do 'umount mountpoint' or users can do 'smbumount mountpoint'.
Don't confuse smbmount with smbmnt - the first is the command you use to mount shares manually, the second is the one that should be suid and is used both by smbmount and by mount -t smb.
Hope this helps.
-bogomipz

Similar Messages

  • How to allow user print their draft anwsers before sending it as final ?

    How to allow user print their draft anwsers before sending it as final in a form central questionnaire ?

    Hey MTdev,
    Panel close? events cannot be triggered on a VI being viewed or controlled remotely. Some more information on that can be found in the help here:http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/vi_panel_closeq/.  My suggestion would be to set the Title Bar on the front panel of your remote VI to not be visible so that their only option for closing the window is to click the logout button.  Are you using Remote Front Panels(http://zone.ni.com/devzone/cda/tut/p/id/3277) to do this instrument control?  Using remote front panels allows you to manage a lot of the multiple people accesssing at the same-time type issues so it may be something to look into if you are not already using this method.  
    Regards,
    Kevin
    Product Support Engineer
    National Instruments

  • How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?

    Hi,
    How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?
    I need to give user an option to do so, without the intervention of any Administrator. I also do not want to make user a Administrator else he will be able to login in weblogic and can do any damages unknowingly.....
    Regards,
    Rahul

    Hi,
    Replace the line in the instantconfig.xml
    <WebMessage name=”kmsgChangePasswordLink”><!–<HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML>–></WebMessage>
    with
    <WebMessage name=”kmsgChangePasswordLink”><HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML></WebMessage>

  • Anybody knows that how to Allowing user Customization at runtime for portle

    Anybody knows that how to Allowing user Customization at runtime for portlet.
    What i want is to let user Customization persist to the repository. (not session). bu tmy testing accodring the Jdev 11g guide shows not working for portlet..
    Any body knows how to do this for portlet ? Web center 11g
    thanks a lot.
    Wayne

    Hi Wayne,
    You can only save runtime customizations to the repository for the users present in jazn-data.xml file (If you are using file based security).
    You will have to do the following before you can start saving user customizations:
    1. Create Webcenter Template project.
    2. Apply ADF Security
    3. Use page-definition files for jspx pages.
    After this, whatever customizations you do, will be saved to persistence storage.
    Better would be to try this on server. Since, before deploying, you run the pre-deployment tool, which will take the MDS Repository path as an input and store all persistence storage there.
    If there is nothing in that location, you can be sure something is wrong and debug it.
    Hope that was helpful.
    Regards,
    Kunal Chheda.

  • Fstab: Allowing users to mount DVD-Rom - how?

    Hello ... a silly question i know ...
    i had following in my fstab (generated by Archinux install)
    /dev/cdroms/cdrom0 /mnt/dvd udf ro,user,noauto,unhide 0 0
    But i cannot mount the dvd as user i get following error message:
    mount: only root can mount /dev/cdroms/cdrom0 on /mnt/dvd
    I thought the options "user" allows all users to mount it?
    CU ActionNews

    when i try this as user i get following:
    mount /dev/cdroms/cdrom0
    /dev/cdroms/cdrom0: Input/output error
    mount: I could not determine the filesystem type, and none was specified
    EDIT: oh sorry audio-cds cannot be mounted . with a dvd-rom it works .
    Thanks.
    CU ActionNews

  • How to allow user upload file on applet??

    Sorry I'm new to programming here, but I'm trying to allow user to upload a file to the server so the program inside the server can user the file as input.
    I've noticed that JFileChooser, the ideal class for this, is not allowed on the applet, so I don't know how to go about doing this.
    Thanks for any input!

    ok
    you wish to transfer a file from applet to server.
    1. Applet gets the file
    the applet needs to access the file System therefor it must b a signed applet to get aound the security restrictions. This is why the JFileChooser doesn't work. Check out the tutorials on jars and applets, particularly the security notes.
    2. opens a connection with the server
    so the applet has a file and needs to send it. there needs to be a service of some form on the destination computer to execpt the file. Perhaps you write your own perhaps you use HTTP.
    3. server software stores the file
    where an applet is an mini application that runs within the confines of the web browser. a SERVLET is a service program which runs with in the confines of a server, such as a web server.
    this is a lot easier to do HTML rather that applet in my opinion but which ever.

  • How to allow user to enter multiple values?

    Hi, can someone tell me how I can allow user to select multiple values from a selection screen. To be more clear, I have to display 4 values on the selection screen and want to allow user to select 2 or 3 values from it. It will be very helpful if someone could tell me how to do it.
    Thanks in advance,
    pushpa

    hi mahesh,
    pls c the code below. this is what i have written in my program. when i run this program it is showing only one value and that too only the first one '1234'. i want that it display all the values that i gave in the initialization part.
    please help.
    thanks,
    pushpa
    SELECTION-SCREEN BEGIN OF BLOCK enter_data WITH FRAME TITLE text-001.
    SELECT-OPTIONS skunnr FOR kna1-kunnr.
    SELECTION-SCREEN END OF BLOCK enter_data.
    INITIALIZATION.
    skunnr-low = '1234'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '9824'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '8756'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '6534'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.

  • On and iPad how to Allow User To Enter Custom Text  (Dropdown only) Enables users to enter a value other than the ones in the list.

    On an iPad, how do I :
    Allow User To Enter Custom Text
    (Dropdown only) Enables users to enter a value other than the ones in the list.'?

    Are you using the built-in Currency option under the Format tab? If so,
    what you're describing should not happen.

  • Interactive form, how to allow user use comment and markup tool?

    hi, gurus,
    we are using
      CALL FUNCTION 'FP_JOB_OPEN'
    and
      CALL FUNCTION 'FP_JOB_close'
    together with the sfp funciton module to generate fillable pdf file, but we found out that the pdf generated does not allow user to use the comment and markup tool, it's required adddition reader right?
    could you please how to generate the pdf that can allow user to insert comments ?
    best regards.
    jun

    Hi,
    please follow these steps:
    - You have to enable ReaderRights (on ADS configuration using VisualAdmin)
    - The PDF must be static and NOT dynamic
    Then it works.
    Take care,
    Thomas

  • How to allow users to include a photo when submitting a form

    Using Adobe Livecycle Designer ES Version 8.2.1.3144.1.471865
    Would anyone out there know how to add the functionality of allowing users who are filling out a form to include a photo when submitting the form?
    Thanks in advance for any help.
    Regards,
    Lola

    Hi,
    If you drag an imageField onto the page, when the user clicks on this at runtime, they will be prompted to select an image file.
    There is an example of that in this form: http://assure.ly/j1KdNq.
    There are more image field examples on our site, but I don't think any of them are set up for the user to select an image. http://assure.ly/ozrNSO.
    Hope that helps,
    Niall

  • How to allow user to change SAP Portal password by themselves

    We would like to allow user to change SAP Portal password by themselves. However, I added role Manage_My_Password and Manage_My_Profile to a user account. After logoned with this user account and opened the option 'Personalize'. I only find the page allow me to customize the page layout. But I haven't find tab for changing profile and password.
    Pls advise.
    Thanks.
    Edward

    Hi Edwar,
    You can hide the pages from portal personalization workset. copy the workset and select the page and click on property -> select Invisible in Navigation Areas ->yes
    You can find the workset under
    Portal content->End user content->Standard Portal Users>Workset->Portal Personalization
    If you want a custom developed application fro change password see the below blog
    A Change Password Application
    Hope it helps
    Regards
    Santosh

  • How to allow user refer back to lecture when they are taking a quiz?

    Hi everyone,
    I'm new to Captivate and now I am kinda in a dilemma. Thanks for your
    time watching my post!
    I created a CBL in Captivate 3, the first 10 slides is a lecture and it
    is followed by a 10 slides quiz set as SCORM standard.
    I want the learner to be able to refer back to the lecture when they
    are taking the quiz, I tried to in 2 approaches and they both have
    issues in different ways.
    Approach 1:  "allow backward movement", and "infinite attempts". The
    problem with this approach is, when the learner click "review the
    quiz" and when they click "back" on the first quiz slide, the whole
    quiz will be start all over, the score is flipped back to zero.
    Because the quiz seeing this as a new attempt, and the learner is
    allowed to make "infinite attempts" as it was configured.
    Approach 2: Set "allow backward movement" and allow only "1 attempt".
    The problem with this approach is, when the learner is in the middle
    of the quiz and refers back to the lecture, the quiz will be
    automatically shown as completed. And the learner will not get a
    chance to answer those unanswered questions.
    So it looks like whenever I let the learner refer back to the lecture
    in the middle of a quiz, the quiz will be seen as completed!!! What am
    I doing wrong? Is there a better approach that I can "allow backward
    movement" and still allow user resume their quiz from where they left
    off?
    Sorry for the long post, I was not able to express it in a more
    concise way.
    Any help is really appreciated!!
    -David

    What you are seeing is the behaviour as-designed in Captivate for quizzing.
    Each Captivate movie has a "quiz scope" which begins with the very first scorable object, and ends at the Quiz Results slide.  If you enter the quiz scope by starting a quiz slide, then jump back outside the quiz scope, by going back to the main content, Captivate's default behaviour is to freeze the quiz at that point.  So when Captivate refers to Allow Backward Movement, it's only talking about backward movement within the quiz scope.
    For example, if you get to question 1 but don't answer it and go to question 2, then answer that one, and go back to question 1, you'll still be able to answer question 1.  The quiz won't be frozen.  However, if you had jumped back to any slide before question 1, your quiz would have been frozen with whatever score you had accumulated at that point.
    There may be a workaround you can use to get closer to what you want.  Since any scorable object is classified as being part of the quiz, you can add a button on one of the very first slides that the user needs to click in order to advance.  Set the properties of this button (or click box) to report a score to the quiz.  This makes it part of the quiz scope.  Now any content slides that fall after this button slide are also within quiz scope and moving back to them will not have the same effect of freezing the quiz.
    Please bear in mind one more aspect of quiz questions:  If you answer a quiz question, and then move off the slide (forward or back) that quiz question answer is frozen and cannot be changed unless you Retake the Quiz or relaunch the entire module.
    Hope this helps clear up the way things work.

  • Non-root user cannot umount a SAMBA share if there is "SPACE" with the

    I already post this to the bugs report http://bugs.archlinux.org/task/9672, but I would like to see if someone in the forum can help.
    Description:
    If there are "SPACE" in the SAMBA share name. Then, a non-root user can mount that share, but cannot umount it with "umount" command. It gives "mount desagrees with the fstab" error. root can mount/umount without any problem.
    Also, user can umount the share by "smbumount" without any problem.
    Additional info:
    * package version(s)
    samba 3.0.28A-1
    util-linux-ng 2.13.0.1-2
    * config and/or log files etc.
    /etc/fstab
    Steps to reproduce:
    1. Add a line in /etc/fstab as the following
    //QNAP-500GB/USB\040Disk\0401 /mnt/eBooks smbfs workgroup=GROUPNAME,username=xxxxxx,ip=xxxxxxxx,password=xxxxxx,noauto,noatime,users,rw 0 0
    as you can see that SAMBA share name "USB Disk 1" was replace by "USB\040Disk\0401".
    2. Change UID of/usr/bin/smbmnt and /usr/bin/smbumount by
    chmod u+s /usr/bin/smbmnt
    chmod u+s /usr/bin/smbumount
    3. Change the ownership of the mount path for this SAMBA share to a non-root user by
    chown username:users /mnt/eBooks
    4. mount as a non-root user (username)
    mount /mnt/eBooks
    5. ERROR! if umount as a non-root user; NO ERROR if umount as root.
    [ning@HP-m8100y ~]$ umount /mnt/eBooks/
    umount: /mnt/eBooks mount disagrees with the fstab
    6. This SAMBA share can be umounted by
    smbumount /mnt/eBooks

    Did you try using %20 instead of a space?  I know it works for URLs...worth a shot.

  • User unable to umount samba share

    Here is the lines in my /etc/fstab related to samba shares.
    # Some Windows/SAMBA shares
    //BAO-QNAP500GB/USB\040Disk\0401 /mnt/eBooks smbfs workgroup=BAO-HOME,username=xxxxxx,ip=192.168.2.4,password=xxxxxx,noauto,noatime,user,rw 0 0
    I am able to mount samba share as a user (not root) after
    chmod u+s /usr/bin/smbmnt
    chmod u+s /usr/bin/smbumount
    by
    mount /mnt/eBooks
    However, I am unable to umount as a user:
    [ning@HP-m8100y ~]$ umount /mnt/eBooks
    umount: /mnt/eBooks mount disagrees with the fstab
    On the other hand, this could work:
    smbumount /mnt/eBooks
    Can somone tell me what I did wrong?

    Looks like its something to do with fstab though I don't know what never having mounted shares though fstab myself. I would try removing the fstab entry and just using smbmount to mount shares, thats the way I've always done it and never have problems with mounting/unmounting.
    smbmount //IP Address/source folder /destination folder

  • How to allow users to pick up a specific week for a report based on SSAS Cube

    hi Folks: 
       I have created a report which is pretty simple: for a specific week, I want to know the total values.   This specific week comes from a Fiscal Calendar hierarchy ( Year - Quarter - Month - Week) .
     Now, I want to create a parameter called @specificWeek to this cube based report so that users could pick any week they want ( no multiple values allowed).   I understand that I need to create a parameter @specificWeek and created a dataset to
    populate .
    After that, find a way to embed this paramenter into the main MDX query .
     Can someone show me how to do this?  
    Below is the sample from cube Adventure Works, I want to make the Hierarchy Date.FisCal Weeks as the parameter,
    how to implement? thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    hi Ayad:
      I've done the following steps
    1. In shared datasets, drag all fields I need in and drag the data hierarchy into the filter and check it as a parameter. 
    2. On the reportData pane, when I right click the datasets, I did not see any option says show hidden dataset. 
    3. WHen I run the report, it did not pop up the dropdown list for the week selection.
    Any ideas? thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

Maybe you are looking for

  • Trying to Open PSE 9 and get Microsoft Visual C++ Runtime Library Error Message HELP please! :)

    Everything worked fine until I paid and downloaded a program called Rad Lab that works in Photoshop Elements.  I got that downloaded and then tried to open PSE and it won't open and I keep getting this error message. I've attached a screen shot of wh

  • How can I store apps on my phone, so I don't have to use 3G or internet???

    I am in Europe for 4 months, and at $50/month for 50MB, I am not able to use the majority of my apps, some of which SHOULD work on my iPhone without internet access. On my palm pilot, which had a fraction of the data capacity, I had a spanish/english

  • How do I remove my updated apps out of the App Store update page on my iPhone 5?

    If I open the App Store from my iPhone 5 - there is a queue of EVERY SINGLE APP (which I have already downloaded and updated) and the queue is getting longer by the day as it dates back to September 21. I've owned and used every iPhone since the Day

  • BAPI for creating variant table

    Hi, Cu61 and Cu60 are two transactions in SAP (comes under Variant Configuration) to create a variant table and fill its contents respectively.      Now, I am trying to create a transaction in SAP such that on the screen it takes the name of the vari

  • Photos disappear in Yosemite

    I was using Yosemite beta, downloaded and installed the commercial version yesterday. Opened iPhoto, got a message saying some photo permissions needed repairing and then, surprise, no photos in iPhoto. In the finder, thought, the info on the app. sa