Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Why do I keep getting .:Permission denied? Post 302264285 by Perderabo on Wednesday 3rd of December 2008 03:59:01 PM
Old 12-03-2008
Quote:
Originally Posted by bbersani
I should be able to invoke it by typing . profile. However, when I do this for ANY .filename, I get ".: Permission denied".
That's not true. the command is:
. .profile

The filename is ".profile" and the leading "." is a command. It looks like your shell is not stubbling on the argument though. Rather it looks like your shell has trouble with the command called ".". So what shell are you using? That error message would be expected if you are using csh or tcsh. However .profile is not for use by csh or tcsh. They use .login instead. With them you would do:
source .login
but you really should switch to bash or ksh, they are better shells.

Edit:

about the aliases...this is yet another reason to dislike csh. You are defining unusable aliases that would have no effect even if you could invoke them. The csh syntax is:
alias csp "cd /data/apps"

The equal sign, while allowed, renders the alias useless. Get used to behavior like that if you stay with csh.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

permission denied??

i'm trying to set up my internet connection and i was told i need to edit the file /etc/ppp/pap-secrets but i get a permission denied message...why?? (6 Replies)
Discussion started by: justchillin
6 Replies

2. UNIX for Dummies Questions & Answers

./ Permission Denied.

Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 Replies

3. UNIX for Dummies Questions & Answers

Permission Denied

I just started computer science at UW Milwaukee. When I access the university Solaris system from PuTTY, I get permission denied when I try to access the file I wrote. Now I really have no idea what I'm doing, I just don't understand why I get permission denied in my won directory. Thank You ... (0 Replies)
Discussion started by: howeezy
0 Replies

4. UNIX for Advanced & Expert Users

Permission denied

Hi, I can not execute a .env file $ . /Data/oracle/d03/mydbora/8.0.6/MYDB.env -bash: /Data/oracle/d03/mydbora/8.0.6/MYDB.env: Permission denied Even if : -rwxrwxrwx 1 oracle dba 2903 Mar 5 2007 /Data/oracle/d03/mydbora/8.0.6/MYDB.env Please help. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

5. UNIX for Dummies Questions & Answers

Permission denied

I would like to copy data from local mechine to cluster. Basically, I typed scp -r DVD/ acount@cluster:/ it shows Permission denied. Could anyone please give me a clue to write permission on cluster, please? The poperty of where on cluster I'd like to put is drwxr-xr-x Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies

6. Red Hat

Permission denied

Hi guys im new to this db i have a small prob while installing websphereportal6.1i think i was installed succesfully but the error im getting is while starting server. check this out # ./serverStatus.sh -all Error loading: /usr/wps61/AppServer/java/jre/bin/classic/libjvm.so: cannot... (1 Reply)
Discussion started by: varma917989
1 Replies

7. Shell Programming and Scripting

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

8. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

9. UNIX for Dummies Questions & Answers

Permission denied

when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies

10. Ubuntu

Permission denied

Trying to get date into the txt file. It says Permission denied. echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt exec 2>> /tmp/systemd_suspend_test_err.txt if ; then # Do the thing you want before suspend here echo "we are suspending $(date +%I:%M:%S_%D)." elif ;... (5 Replies)
Discussion started by: drew77
5 Replies
mesg(1) 						      General Commands Manual							   mesg(1)

NAME
mesg - Permits or refuses write messages SYNOPSIS
mesg [y | n ] [Tru64 UNIX] The following format is supported for backward compatibility: mesg [[-]y[es] | [-]n[o] ] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: mesg: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPERANDS
Grants permission to other users to send messages to the terminal device. [Tru64 UNIX] You can optionally include a - (hyphen) before y, include es after y, or both. Denies permission to other users to send messages to the terminal device. [Tru64 UNIX] You can optionally include a - (hyphen) before n, include o after n, or both. DESCRIPTION
The mesg command controls whether other users on the system can send messages to you with the talk and write commands. Called without arguments, mesg displays the current terminal message permission setting. [Tru64 UNIX] The shell start-up procedure disallows messages by default. You can override this default action by including the line mesg y in your $HOME/.profile (sh), (csh), or (csh) file. Note [Tru64 UNIX] This default setting described for the shell start-up procedure message permissions assumes that the shell is one started as part of a login session. If the shell got started by some other means, the default depends on what that other program has done. [Tru64 UNIX] Any user can send messages with write if the receiving user has enabled messages. A user with the sysadmin command autho- rization can send messages to any terminal. The terminal device affected is determined by searching for the first terminal in the sequence of devices associated with standard input, standard output, and standard error, respectively. (In other words, the affected device is not the same as the controlling terminal for the session.) [Tru64 UNIX] Message permission has no effect on messages delivered through the electronic mail system. [Tru64 UNIX] If you add mesg y to your $HOME/.profile, you will be able to receive messages from other users via the write command or the talk command. If you add mesg n to your $HOME/.profile, you will not be able to receive messages from other users via the write command or the talk command. The mesg command also accepts the current locale's equivalent of yes and no. These equivalents are determined by the setting of the LC_MESSAGES environment variable. The usage message displays the current locale's equivalent of yes and no. Security Restrictions [Tru64 UNIX] In the trusted configuration of the system, all terminal devices have owner set to the login user and group set to the pseu- dogroup tty. The login command sets terminal modes to 0600 at login time, so you must explicitly use mesg y to enable access from unautho- rized users. NOTES
[Tru64 UNIX] If your current locale defines settings other than yes or no, the mesg command does not accept yes or no as arguments. This causes an error if you use a yes or no argument to mesg in your file. EXIT STATUS
The following exit values are returned: Message reception is allowed. Message reception is denied. An error occurred. EXAMPLES
To allow only appropriately authorized users to send messages to your terminal, enter: mesg no To allow everyone the permission to send messages to your terminal, enter: mesg yes To determine the state of message acceptance of your terminal, enter: mesg This will give one of the following responses, as appropriate: is yes is no ENVIRONMENT VARIABLES
The following environment variables affect the execution of mesg: Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the for- mat and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of LC_MESSAGES. FILES
User profile User profile (csh) User profile (csh) Your current terminal SEE ALSO
Commands: chmod(1), csh(1), Bourne shell sh(1b), POSIX shell sh(1p), stty(1), talk(1), wall(1), write(1) Functions: chmod(2) Standards: standards(5) mesg(1)
All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy