11-12-2008
What are the permissions on /usr/bin/pwd? If it also has the sgid bit and is in the a different group than the directory, then you are getting the expected result.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a crontab job that runs a database backup and directs the output to a log. I ran the job, and the output log file was created with no problems, but now if I try and run the same job again, I keep getting a file exists error. The permissions are:
-rw-rw-r--
I also tried changing the... (2 Replies)
Discussion started by: jodie
2 Replies
2. Linux
I'm having some peculiar performance issues with my Gigabit Lan.
I have some 100Mb devices so I can't do the necessary "jumbo Frame" tweaks for absolute optimum performance as I'd prevent them access.
I'm getting appauling transfer rates sending files to the linux machine, around 10 Mbps 3%... (0 Replies)
Discussion started by: Mark Ward
0 Replies
3. Forum Support Area for Unregistered Users & Account Problems
I am having problems editing my options and profile etc.
Whenever i do, i am getting a message that says I don't have any permissions. Can u tell me a solution. (2 Replies)
Discussion started by: rockyrak
2 Replies
4. Shell Programming and Scripting
Whenever I sftped a particular gzipped file to a particular directory and then try to unzip it, I get Permission Denied error.
With this file even I cannot do chmod. though the file permissions are -rw-r--r--
When same file I sftp to a different location I am able to gunzip it.
Directory... (0 Replies)
Discussion started by: RishiPahuja
0 Replies
5. Solaris
I ran the sys-unconfig command and now I can't seem to change the permission on that folder evne though I'm the Superuser(Root admin).
I need to fix this so the user 'tommy' can login and have his home directory working.
How do I fix this???
http://www3.telus.net/superstar/error.jpg (6 Replies)
Discussion started by: kungpow
6 Replies
6. UNIX for Dummies Questions & Answers
Hello
I have situation where with my user id (group x) I am able to view a file. However if su to another user (different group) I am not able to view. I get permission denied. The file has complete wide open permissions -rwxrwxrwx and I can also cd from root to the directory in which the file... (3 Replies)
Discussion started by: akumargolf2000
3 Replies
7. UNIX for Dummies Questions & Answers
How would i change permissions for a new directory so that i am the only one who has any access to any of the files created in it (2 Replies)
Discussion started by: trob
2 Replies
8. UNIX for Advanced & Expert Users
I can't figure out why cygwin won't let me write a file to this directory. Any ideas?
$ id
uid=1007(jdbaldwin) gid=513(None) groups=513(None),0(root),544(Administrators),545(Users)
$ ls -lad .
drwxrwxrwx+ 1 jdbaldwin None 0 2010-09-29 12:47 .
$ touch x
touch: cannot touch `x': Permission... (3 Replies)
Discussion started by: jdbaldwin
3 Replies
9. Slackware
When I set up to backup /home to a DVD I am incurring a problem with K3B ver. 2.0.2 saying I (root) has insufficient privileges to access /home/myuser/hp-check.log file. It also does this to the lost+found files for /home and /opt. I am root and the file/directory has read+write privs for root.... (1 Reply)
Discussion started by: slak0
1 Replies
10. Linux
aa=|
echo $aa
The above echo works but the below echo fails. Why please?
IFS=:
aa=|
echo $aa
echo $IFS
The later 'echo' command will work if variable is put in codes.
echo "$aa"
echo "$IFS"
I summarize that when IFS is set to ':' or '|', echo used with variable doesn't work unless... (22 Replies)
Discussion started by: ravisingh
22 Replies
pwd(1) User Commands pwd(1)
NAME
pwd - return working directory name
SYNOPSIS
/usr/bin/pwd
DESCRIPTION
The pwd utility writes an absolute path name of the current working directory to standard output.
Both the Bourne shell, sh(1), and the Korn shell, ksh(1), also have a built-in pwd command.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of pwd: LANG, LC_ALL, LC_MESSAGES, and
NLSPATH.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
If an error is detected, output will not be written to standard output, a diagnostic message will be written to standard error, and the
exit status will not be 0.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|CSI |enabled |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
cd(1), ksh(1), sh(1), shell_builtins(1), attributes(5), environ(5), standards(5)
DIAGNOSTICS
``Cannot open ..'' and ``Read error in ..'' indicate possible file system trouble and should be referred to a UNIX system administrator.
NOTES
If you move the current directory or one above it, pwd may not give the correct response. Use the cd(1) command with a full path name to
correct this situation.
SunOS 5.10 28 Mar 1995 pwd(1)