File permission problems.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File permission problems.
# 1  
Old 06-19-2008
Question File permission problems.

Hi all,

I am on SunOS 5.8 box. The problem is when i move files from one folder to another the command is executed and file is moved, but file permissions in the destination folder are "----------". i have to chmod the file and change the permissions everytime. i dont have a clue why this is happening.

Also i am having problems using the mailx command. when i execute the mailx command a temp file is created in the /tmp folder with "---------" permissions and when the mailx tries to use that temp file it says permission denied as the file does not have any permissions.

Please let me know if anyone has had the same kind of problem before and how did they manage to solve it or anyone knows the reson why this is happening.

Thank you,
Nemi.
# 2  
Old 06-19-2008
next time copy the files with permissions unchanged.
#cp -p file1 /dir/file1
or
#cp -pR *.txt /dir/txtdir/
# 3  
Old 06-19-2008
also check that the sendmail program has its suid flag, so chmod u+s for /path/to/sendmail to fix this problem.
# 4  
Old 06-19-2008
Problem Solved

Thank you incredible.

The problem was umask in my .profile was not 022, i had changed that value to some other value when trying to figure out the problem.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

File permission

Hi, Could you please tell me the OS command to grant as similar to below permission? rwxrwxr-x OS -- HP-UX Regards, Maddy (8 Replies)
Discussion started by: Maddy123
8 Replies

2. Shell Programming and Scripting

MV file with other permission

Hello All I have a file with rw-rw-r permission I need to mv the file into different directory (dir has rwx-rwx-rwx permission) with an others permission The application which is moving the file falls in other group I am getting the error mv cannot renamed permission denied ... (12 Replies)
Discussion started by: Pratik4891
12 Replies

3. UNIX for Dummies Questions & Answers

Sendmail dir permission problems.

I accidently deleted the queue directory and now i'm receiving this error when I try to send email with sendmail. :~# mailq MSP Queue status... /var/spool/mqueue-client (1 request) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- s495xA7J002673 ... (1 Reply)
Discussion started by: galford
1 Replies

4. Ubuntu

File permission

Hi Friends, I want to create one user on my server in such a way that when he logged in by ssh on server,he can able to access ONLY /var/www/drupal-6.2 this directory. Please tell me how should i do that. (4 Replies)
Discussion started by: paragnehete
4 Replies

5. Web Development

Permission problems calling Ruby from php script

I'm just getting my feet wet with web development, so hopefully this is a simple thing I'm overlooking, but so far I'm stumped. I have a php script that calls Ruby via exec(). This works fine in my test environment, but when I moved it to my production environment I run into a permissions... (7 Replies)
Discussion started by: dantes990
7 Replies

6. Cybersecurity

file permission/acl: 2 users with write access on 1 file...

Hello, i need some help/advice on how to solve a particular problem. these are the users: |name | group | ---------- --------------- |boss | department1 | |assistant | department1 | |employee | department1 | |spy | department2 | this is the... (0 Replies)
Discussion started by: elzalem
0 Replies

7. UNIX for Dummies Questions & Answers

File Permission

Hi, When I listed one directory in Sun, it showed that : -rwsr-xr-x 1 root bsmbin 78004 Oct 21 2004 bsmprsm I don't know meaning of the character "s" in "rws" above. I have searched in Sun admin documents but no result. Would you please explain it ? :) Thank you so much. (1 Reply)
Discussion started by: msg098
1 Replies

8. UNIX for Advanced & Expert Users

File Permission

User - sysopr need to convert the output file from Oracle UTL_FILE_DIR using dos2unix command. However, the file owner and the group is belongs to oracle with dba group as follows: -rw-r--r-- 1 oradw dba 22049864 May 23 15:37 transmission*.csv What are the possible methods to... (2 Replies)
Discussion started by: KhawHL
2 Replies

9. Shell Programming and Scripting

Scripting file permission problems...

Hello all - I have two systems. 1) Linux box running Redhat 8.0 2) Tru64 box running V4.0f From the Linux box I am remotely mounting a directory (nfs mount) that resides on the Tru64 machine. The directory that is nfs mounted contains two subdirectories: my_dir1 my_dir2 I want... (3 Replies)
Discussion started by: Heron
3 Replies

10. UNIX for Advanced & Expert Users

File Permission

I have written a shell script function, this function reads a encrypted a file and does some processing. I want to give execute permissions to others but I don't want to give read access to the shell script function. Since the shell script function know how to open the encrypted file so that's why... (6 Replies)
Discussion started by: sanjay92
6 Replies
Login or Register to Ask a Question