Chown error in Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Chown error in Solaris
# 1  
Old 06-01-2016
Chown error in Solaris

Hello All,

I am trying to change the home directory ownership of a user from "skel" to user himself,

Code:
drwxr-xr-x   4 skel aldo      4096 May 26 09:47 dosatc


But when i do that i get an error stating,
Code:
# chown -R dosatc /msdhome/dosatc
#chown: getcwd: Too many open files

Please guide me on how can i rectify the issue

Last edited by DukeNuke2; 06-01-2016 at 08:57 AM..
# 2  
Old 06-01-2016
Either increase open files limit for user or use find / exec to do it each file/directory one at the time.

Hope that helps
Best regards
Peasant.
# 3  
Old 06-01-2016
Hello Peasant,

Thanks for the reply. Sorry i am a newbie, can you please help me on commads how it can be done please?
# 4  
Old 06-01-2016
The error you are seeing can be caused by a couple of things:
  1. The file table in the kernel of your operating system is full. This happens because a lot of users have a lot of open files and the kernel wasn't configured to allow more open files than what are already open in all of the processes that are currently running on your system.
  2. You personally have more open files in processes that you are running than are allowed by your system administrator for an individual (non-privileged) user. This can frequently happen to newbies who first find out that they can run lots of background jobs and forget that running jobs in the background consumes system resources.
Since you do not have root privileges, you cannot fix the 1st problem. If this is your problem, you need to let your system administrator know that you can't run jobs because the file table is full and ask her/him to get rid of some of the offending file hogs or reconfigure the system to have a larger file table. (Note that this only applies to older systems; more recent system usually grow the file table as needed.)

If you can successfully run the command:
Code:
ps -u login_name

where login_name is the name you use when you login to your system, that will give you a list of all of the processes that are running with your user-ID. If there are lots of (possibly long-running) background jobs there that you didn't realize were still running, either wait for those jobs to complete or kill them off on your own.

But, of course, if the file table is full (problem #1 above) and there are running processes trying to open more files, the ps command may fail as it tries to open directories to find ps, to open the password data base to find your login name, etc.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using chown command.

I am working on a test machine. I just discovered that I have misunderstood the way the following command is run. chown -Rv some_user:users /some_folder/*This command do exactly what I want. Change the owner of every things from the named folder and in all child folders. But of course it leave... (13 Replies)
Discussion started by: jcdole
13 Replies

2. UNIX for Dummies Questions & Answers

Pls help. can't do chown ????

I am trying to change the directory to owner of Sybase. But I get permission denied. I did login as root. newd1> ls -l total 58 drwxr-xr-x 2 prod develop 5 Oct 17 06:51 bin drwxr-xr-x 2 prod develop 7 Oct 17 07:18 etc dr-xr-xr-x 1 root root 1... (15 Replies)
Discussion started by: samnyc
15 Replies

3. UNIX for Dummies Questions & Answers

chown: <file>: Not owner on Solaris 9

Hi, on a Solaris 5.9 machine no user except for root is able to use chown. for exmaple: > touch iamgal > ls -la iamgal -rw-r--r-- 1 galtest1 other 0 Dec 19 08:40 iamgal > chown galu iamgal chown: iamgal: Not owner I have checked about /etc/system and rstchown - it is... (5 Replies)
Discussion started by: galuzan
5 Replies

4. Solaris

chown

Hello My oracledatabase creats some xmlfiles. this files has the owner hugo. now I've a script (how runs als hugo2) and this script will insert this XMLFile into the database. But that doesn't work, because the owner of the files is wrong, and hugo has not the rights to insert this files into... (3 Replies)
Discussion started by: Street
3 Replies

5. Shell Programming and Scripting

Chown - error

I have a file fin2009_4.txt.gz in the unix ftp server. Owner of the file is: ftpusr. -rw-r--r-- 1 ftpusr sap 0 Feb 19 10:19 fin2009_4.txt.gz When I try to delete this file after copying to my home folder, I am getting the following error. rm: fin2009_4.txt.gz1: override... (4 Replies)
Discussion started by: sid1982
4 Replies

6. AIX

Trouble in chown

I'm a owner of directories or files why I can't deliver the ownership of them up to other users? (1 Reply)
Discussion started by: kang
1 Replies

7. UNIX for Dummies Questions & Answers

chown

is there a difference in chown on a file or a directory? how do i chown a directory and all the contents? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

8. AIX

chown

hello chown not change ownership before: 205:system ~kuku chown kuku:system ~kuku after no change 205:system ~kuku aix box can someone help me? ariec (2 Replies)
Discussion started by: ariec
2 Replies

9. UNIX for Dummies Questions & Answers

chown and permissions

how i could give to user permission(delete,execute and so on) and ownership to files? Thanks (1 Reply)
Discussion started by: ithost
1 Replies

10. UNIX for Dummies Questions & Answers

chown and NIS

I have a box that people are using to ssh to our customer sites. Everyone uses an NIS account that I have created for them. I also create home directories for these users as well on this box. My question is can use a command, like chown, to change ownership of the directories I create to the... (2 Replies)
Discussion started by: Jody
2 Replies
Login or Register to Ask a Question