home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux      Getting to be as bloated as Windows!      107,822 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 106,718 of 107,822   
   Java Jive to All   
   Can't run script on server   
   18 Dec 24 18:39:43   
   
   XPost: uk.comp.os.linux   
   From: java@evij.com.invalid   
      
   I have a QNAP 241+ server running the latest firmware, which exports   
   linux shares under NFS, and a laptop running Ubuntu 22 which contains   
   the following line in /etc/fstab ...   
      
   IPAddress:/Path  /media/servername  nfs  user,defaults,rw,noauto  0  0   
      
   ... allowing the share to be mounted by clicking the desktop icon or in   
   the file explorer.  My user credentials are identical on the two   
   machines, particularly the user and group ID numbers are identical,   
   EXCEPT, for the greater convenience of Windows clients, the actual   
   username itself is proper-cased on the Server to match those on the   
   Windows clients, whereas it has to be all lower case on the Ubuntu   
   client, while on the server the root account is called admin, but still   
   has user ID = 0.  Please note carefully the following sequence:   
      
   username@hostname:Slides# ssh admin@servername   
   Enter passphrase for key '/home/username/.ssh/id_rsa':   
   [~] # cd /Path/Slides   
   [Slides] # ll *.sh   
   -rwxrwxr-x 1 admin admins 55 2024-12-18 15:16 SlidesBackUp.sh*   
   -rwxrwxr-x 1 admin admins 52 2024-12-18 15:16 SlidesBlink.sh*   
   [Slides] # ll -n *.sh   
   -rwxrwxr-x 1 0 1000 55 2024-12-18 15:16 SlidesBackUp.sh*   
   -rwxrwxr-x 1 0 1000 52 2024-12-18 15:16 SlidesBlink.sh*   
   [Slides] # grep admins /etc/group   
   admins:x:1000:admin,Username   
   [Slides] # grep Username /etc/passwd   
   Username:x:1002:1002:UserDescription,,,:/share/homes/Username:/bin/sh   
   [Slides] # exit   
   logout   
   Connection to servername closed.   
   username@hostname:Slides# ll *.sh   
   -rwxrwxr-x 1 root admins 55 2024-12-18 15:16 SlidesBackUp.sh*   
   -rwxrwxr-x 1 root admins 52 2024-12-18 15:16 SlidesBlink.sh*   
   username@hostname:Slides# ll -n *.sh   
   -rwxrwxr-x 1 0 1000 55 2024-12-18 15:16 SlidesBackUp.sh*   
   -rwxrwxr-x 1 0 1000 52 2024-12-18 15:16 SlidesBlink.sh*   
   username@hostname:Slides# grep admins /etc/group   
   admins:x:1000:root,username   
   username@hostname:Slides# grep username /etc/passwd   
   username:x:1002:1002:UserDescription,,,:/home/username:/bin/bash   
   username@hostname:Slides# which bash   
   /usr/bin/bash   
   username@hostname:Slides# cat SlidesBlink.sh   
   #!/usr/bin/bash   
   feh -Fds -A './SlidesBackUp.sh %F'   
   username@hostname:Slides# ./SlidesBlink.sh   
   bash: ./SlidesBlink.sh: Permission denied   
      
   Why can't I run the script?  All the relevant credentials are identical   
   except the capitalisation of the username, but surely it should be using   
   in preference the numeric ids anyway?   
      
   A similar but related problem ...   
      
   Time was, when accessing a Windows share from a Linux machine, you could   
   use an smbusers file to translate between usernames on the two machines,   
   so that, if the passwords on the corresponding accounts were identical,   
   you wouldn't be prompted for credentials when accessing one from the other.   
      
   A typical smbusers file in its simplest form would read thus:   
      
   # This file allows you to map usernames from the clients to the server.   
   # Unix_name = SMB_name1 SMB_name2 ...   
   #   
   # Cf. section 'username map' in the manual page of smb.conf for more   
   # information.   
      
   !root = Administrator   
   username = Username   
   nobody = guest pcguest smbguest   
      
   This functionality doesn't seem to work any more.  Can anyone suggest   
   how to make it work again?   
      
   --   
      
   Fake news kills!   
      
   I may be contacted via the contact address given on my website:   
   www.macfh.co.uk   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca