System tips‎ > ‎

Terminal warnings

/tmp/tmp.OmZrhOOacz: e: Called "net usershare info" but it failed: 'net usershare' gaf fout 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Bestand of map bestaat niet
clr_important field in bitmap should be zero
/tmp/tmp.OmZrhOOacz: clr_important field in bitmap should be zero
/tmp/tmp.OmZrhOOacz: clr_important field in bitmap should be zero
/tmp/tmp.OmZrhOOacz: clr_important field in bitmap should be zero
/tmp/tmp.OmZrhOOacz: clr_important field in bitmap should be zero
/tmp/tmp.OmZrhOOacz: clr_important field in bitmap should be zero

** (nautilus:11183): WARNING **: Could not inhibit power management: The name org.gnome.SessionManager was not provided by any .service files
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' gaf fout 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error Bestand of map bestaat niet
Please ask your system administrator to enable user sharing.

Above warning can be read in the terminal when using the command gksu nautilus. The shown error message also provides a clue of the possible source of the error, namely the folder /var/lib/samba/. Using the command gksu, which gives the user root priviliges, access to a certain folder is required, the name of this accessible folder /usershares.

To check if this folder is created, open a terminal and type the following command:
  • sudo ls /var/lib/samba/
  • Press Enter
  • Type the user password when asked for and press Enter

If the folder /usershares is alrerady created, the output of the above command will show this. Also the terminal can be closed. Do not close the terminal if the folder isn't present.

If the folder is not present, then the folder must be created manually to avoid problems. This can be done as fllow:

  • Type the following command: sudo mkdir /var/lib/samba/usershares
  • Press Enter, if asked for a password, type the users password and press Enter
  • Check if the folde ris created with this command: sudo ls /var/lib/samba/
  • If the output shows the folder, close the terminal

The reason to use sudo is that the /var/lib/sambe requires root priviliges.