[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - How to run labx1.$LOGNAME from anywhere on the system?

How to run labx1.$LOGNAME from anywhere on the system?

Introduction to UNIX/Linux

How to run labx1.$LOGNAME from anywhere on the system?

Postby Wesley Jessup on Wed Dec 17, 2008 3:50 pm

allscripts, which can be ran from anywhere on the system, is located in /home/cis90/bin.

The permissions for this directory prohibit cis90 and others from writing to it.
drwxr-x--- 2 rsimms cis90 4096 Nov 30 23:25 /home/cis90/bin

I tried.
/home/cis90/jessuwes/bin $ cp labx1.jessuwes /home/cis90/bin/labx1.$LOGNAME
cp: cannot create regular file `/home/cis90/bin/labx1.jessuwes': Permission denied

Thus, I don't think labx1.$LOGNAME will be able to be ran from anywhere on the system.

-Wes
Wesley Jessup
 
Posts: 40
Joined: Wed Sep 03, 2008 7:29 pm

Re: How to run labx1.$LOGNAME from anywhere on the system?

Postby Rich Simms on Wed Dec 17, 2008 4:16 pm

FYI ... insuring your file can be run from anywhere is different from being able to copy it to anywhere. Make sure your script has read and execute permissions for users other than yourself. Also make sure that any files in your home directory being displayed by your script have read permissions set.

Out of all the labx1 files submitted so far, only one had permission problems. I could run the script but then got permission errors as the script tried to read files in the students home directory.

In summary, for the Lab X1, you need to set the correct permissions on your script AND all the files in your home directory your script reads.

- Rich
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm


Return to CIS 90 - Fall 2008

Who is online

Users browsing this forum: No registered users and 0 guests

cron