Standard user is able to use other logged in user credentials to access Samba shares Ubuntu 14.04 I have multiple user accounts on my Ubuntu Desktop 14.04 install. I have my a Samba share mounted under my administrator account using Nautilus (Ctrl+L) using credentials (smb://user@server/share). I switched to a standard user account and performed the same operation except without credentials (smb://server/share) and I was able to access everything that the administrator account had access to. Is this a bug or a configuration mistake?  Samba Configuration:  [global]    workgroup = WORKGROUP      admin users = nick      log level = all:2      inherit permissions = yes      inherit acls = yes      map acl inherit = yes      server string = %h      dns proxy = no      name resolve order = lmhosts host wins bcast      interfaces = eth0      bind interfaces only = yes      log file = /var/log/samba/log.%m      max log size = 1000      syslog = 0      panic action = /usr/share/samba/panic-action %d      security = user      encrypt passwords = true      passdb backend = tdbsam      obey pam restrictions = yes      unix password sync = yes      passwd program = /usr/bin/passwd %u      passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully*      pam password change = yes      map to guest = bad user      socket options = TCP_NODELAY      usershare allow guests = no    include = /etc/samba/shares.conf  [printers]      comment = All Printers      browseable = yes      path = /var/spool/samba      printable = yes      guest ok = yes      read only = yes      create mask = 0700    [print$]      comment = Printer Drivers      path = /var/lib/samba/printers      browseable = yes      read only = yes      guest ok = yes     Shares Conf:  [Home]    comment = Home Directory      path = /home      guest ok = no      browseable = no      writeable = yes      inherit owner = yes      inherit permissions = yes      valid users = nick,brittany    [Shares]    comment = Default shares      path = /shares      guest ok = yes      browseable = yes      writeable = yes      inherit acls = yes      inherit permissions = no      hide unreadable = yes      directory mask = 755      force directory mode = 1750      force directory security mode = 700      create mask = 755      force create mode = 1750      force security mode = 700      security mask = 077      directory security mask = 077
How can I set up Samba shares to only be accessed by certain users? I have a RAID10 array mounted on Ubuntu Server 12.04. I have created a few folders within the mount point and want the following functionality.  There will be 4 users, 3 of them are windows users: 'one' 'two' &amp; 'three'. 'four' is a media streamer that only needs to access the MEDIA share. One Two and Three need to have full access to the media share and their own personal shares (for documents) which no other users but them can access.  Currently, User Four works perfectly (Has full access to the MEDIA folder and can't access folders owned by other users). The problem is, when logged in as the other user, I can't access either share; (tried using valid users =  and using chmod to add permissions to no avail).  TL;DR: I need to know how to configure Samba properly to restrict access to certain shares for certain users and allow all of them to access one communal folder (all files on a RAID10 mount).
"Can’t help but" vs. "can help but" Is there an off/disable control anywhere? I realize that the INFO button toggles it off, but it comes right back on as soon as you tap the shutter, and that it a problem in low light situations where the LCD keeps blasting me in the eye. C's strtok() and read only string literals char *strtok(char *s1, const char *s2)      repeated calls to this function break string s1 into "tokens"--that is   the string is broken into substrings,   each terminating with a '\0', where   the '\0' replaces any characters   contained in string s2. The first call   uses the string to be tokenized as s1;   subsequent calls use NULL as the first   argument. A pointer to the beginning   of the current token is returned; NULL   is returned if there are no more   tokens.   Hi,   I have been trying to use strtok just now and found out that if I pass in a char* into s1, I get a segmentation fault. If I pass in a char[], strtok works fine.   Why is this?  I googled around and the reason seems to be something about how char* is read only and char[] is writeable. A more thorough explanation would be much appreciated. How to remove GNOME Shell from Ubuntu 20.04 LTS to install other desktop environment from scratch? I have just installed the final version of Ubuntu 20.04 LTS desktop system from ubuntu-20.04-desktop-amd64.iso. After two days of testing I completely do not like its graphical interface - the GNOME Shell. Even installation of GNOME Flashback does not help either.  So I want to completely remove the GNOME Shell with all its trails from my system without re-installation. Just want to start from scratch like it was approximately if I have installed Ubuntu from . Trouble with batch conversion of .png to .pdf using convert OpenLayers 3 WMS GetFeatureInfo popup I have a map a at the link below:    I added one of my GeoServer WMS layers to the map, now I try to add the attributes window pop up on click. I found to examples on the OpenLayers 3 homepage, but I cannot put together a working code...      Is there any chance to have a working sample somewhere? Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy?  Desirable features are ease of maintenance, IDE-friendliness, suitability for source control branching/merging, and easy generation of install packages.  In particular:   Where do you put the source? Where do you put application startup scripts? Where do you put the IDE project cruft? Where do you put the unit/acceptance tests? Where do you put non-Python data such as config files? Where do you put non-Python sources such as C++ for pyd/so binary extension modules? Remove blank attributes from an Object in Javascript In my project, I use a lot of geodata from different directories. Now I want to give the QGIS project to a colleague (eg on a CD).  Is it possible to copy the shapes from different directories automatically to one directory? Adding values to a C# array I know that the emergency services can be called FREE in the UK by dialing 999 and in the US by dialing 911.   What I don't know is the number to call in other countries and if there is a cost involved. This is something I think most people should find out before travelling but many don't (including me). Hopefully this will help me and other people. Laws and theories What is a , a , and what is the relationship among them?  I know this is a very basic question, so any reference to epistemology will be greatly appreciated :) Wheel going badly out of true on final tightening On two occasions (same wheel, loosened everything off and re-did the whole thing after the first time) as I've applied a final half turn to tighten the spokes round the wheel it's gone from being pretty laterally true (within about 0.5 mm) to badly out of true (probably a couple of mm or more out).  The simplest explanation would be that I've managed to mess up by missing spokes/over under-tightening some of them, but I'm fairly sure that's not the case.  What else could cause this?  This is a rear wheel with a fair amount of dish. I'm worried that I might be over-tightening. On both occasions I decided to do a final half turn as the non drive side seemed a little loose, but I was concerned the drive side might be over tight. Could this cause a sudden change in trueness?  I've got the wheel back to a reasonable state, but I'm no longer sure I have even tension in the spokes. What is the lowest level of mathematics required in order to understand how encryption algorithms work? What mathematical fields of knowledge would be required in order to get a good understanding of encryption algorithms?   Is it basic algebra, or is there a "higher education" mathematical field dedicated to encryption? I know there is the cryptography field, but what is the subset of knowledge required for cryptographers? I have written an essay last year, as a personal exercise. I now have a course at uni on the topic and could basically just hand in this essay now, the topic fits perfectly. I have also never submitted this essay to any other course or so.  Could I just hand in this essay, or would I violate some rules with that? Is this maybe already self-plagiarism? How could I select one vertex from my mesh if I know ID of that vertex? I enabled bpy.app.debug = True and I can see all IDs but cant find a specific one. I am extremely poor in solving a problem quickly, which leaves me doing badly in olympiads and other contests. But, if I just don’t give up on a problem, no matter how much time it takes, I usually end up solving it. To have a future in mathematics or physics, is it necessary for me to excel at contests, because these days children excelling at contests have an advantage over those who don’t (not complete advantage, but advantage nonetheless)? jQuery Datepicker with text input that doesn't allow user input How do I use the jQuery Datepicker with a textbox input:  $("#my_txtbox").datepicker({   // options });   that doesn't allow the user to input random text in the textbox. I want the Datepicker to pop up when the textbox gains focus or the user clicks on it, but I want the textbox to ignore any user input using the keyboard (copy &amp; paste, or any other). I want to fill the textbox exclusively from the Datepicker calendar.  Is this possible?  jQuery 1.2.6 Datepicker 1.5.2 Get a resource using getResource() Inserting newlines in Rectangle Text elements via ArcPy causes overlap? I ran across an issue the other day when I tried to use ArcPy's mapping module to edit rectangle text elements with newlines (\n) in an ArcMap document.  Here's what the output looked like:    Here's the code I used to generate that output.  The first column are rectangle text elements Text1, Text2, Text3 going down; the second column are "plain" text elements Text4, Text5, and Text6 going down.  import os import arcpy  HomeDir = r"C:\Desktop" arcpy.env.workspace = HomeDir  CurrentMXD = arcpy.mapping.MapDocument(r"C:\Desktop\TextTest.mxd") OutputFilename = r"C:\Desktop\TextTest.pdf" if os.path.exists(OutputFilename):     os.remove(OutputFilename)  for TextElement in arcpy.mapping.ListLayoutElements(CurrentMXD, "TEXT_ELEMENT"):     TextElementName = TextElement.name      String1 = "The quick brown fox jumped over the lazy dog.\nShe sells sea shells by the sea shore."     String2 = "The quick brown fox \njumped over the lazy dog.\nShe sells sea shells by the sea shore."     String3 = "The quick brown fox jumped \nover the lazy dog.\nShe sells sea shells by the sea shore."      if TextElementName == "Text1":         TextElement.text = String1     if TextElementName == "Text2":         TextElement.text = String2      if TextElementName == "Text3":         TextElement.text = String3     if TextElementName == "Text4":         TextElement.text = String1     if TextElementName == "Text5":         TextElement.text = String2     if TextElementName == "Text6":         TextElement.text = String3  arcpy.mapping.ExportToPDF(CurrentMXD, OutputFilename)   So far, it looks like the presence of the messed up text depends on whether the line is longer enough to wrap, and whether the line before the newline is longer than the line after the newline.  Any ideas about what could be going wrong?  Is there a workaround?  I could use plain text elements and worry about wrapping lines using Python, but I'm hoping I can figure something out.