WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: /usr/bin/tce-load: line 212: can't create /tmp/appserr: Permission denied  (Read 2952 times)

Offline Adam

  • Full Member
  • ***
  • Posts: 121
I've just created another user "newuser" and getting this error when trying to install new extension.
I don't have this issue using default tc account.
Quote
newuser@box:~$ tce-load -wi curl.tcz lynx.tcz
/usr/bin/tce-load: line 212: can't create /tmp/appserr: Permission denied
curl.tcz.dep OK
libssh2.tcz.dep OK

1. Any idea why?
2. What is /tmp/appserr? I found this on line 40 & 212 in /usr/bin/tce-load.

Quote
     39 abort_to_saved_dir(){
     40         echo "1" > /tmp/appserr
     41         if [ "$BOOTING" ]; then
     42                 SKIP=TRUE
     43         else
     44                 #cd "$SAVED_DIR"
     45                 exit 1
     46         fi
     47 }

Quote
    211 # Main
    212 echo "0" > /tmp/appserr
    213 [ -d "$TCEDIR" ] || exit 1
    214 [ -n "$1" ] || exit 1
    215 [ -f /etc/sysconfig/showapps ] && SHOWAPPS=TRUE && SUPPRESS=TRUE
    216 #  Check for download only
    217 [ -z "$INSTALL" ] && DOWNLOAD_ONLY=1
    218 [ -z "$WGET" ] && [ "$INSTALL" ] && LOAD_ONLY=1

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Does your "newuser" has sudo permission ?

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Does your "newuser" has sudo permission ?

Thanks polikuo for your response.
Yes, it does.
Quote
tc@box:~$ sudo cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL
tc      ALL=NOPASSWD: ALL
newuser ALL=NOPASSWD: ALL
tc@box:~$

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
What is /tmp/appserr?

It's a log file for tce-load to check whether an extension was mounted correctly.

Perhaps you had ran tce-load as tc before switching to "newuser"

Since the file was created before switching to superuser, (permission rw-r--r-- tc:staff)
making the file unwritable for "newuser".

A bug for tce-load I think, it woud be better if the permission was set to rw-rw-r-- root:staff

Just delete the file and it should be good to go.  ;)