nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Can't create dir/file...

This is a discussion on Can't create dir/file... within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hello Friends, I can't create any file or directory in linux system as a user. What will be the cause ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-08-2009, 01:30 PM
Junior Member
User
 
Join Date: Jun 2008
OS: REDHAT
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
JATA01 is on a distinguished road
Exclamation Can't create dir/file...

Hello Friends,

I can't create any file or directory in linux system as a user. What will be the cause and how can I solve the problem?


I tried few commands as for ref.



--starting new bash shell -- level( 1 )



(1) /desti/Users/e029001

[e029001@...] $ unalias mkdir

-bash: unalias: mkdir: not found

(1) /desti/Users/e029001

[e029001@...] $ ll $(which mkdir)

-rwxr-xr-x 1 root root 25060 Dec 24 02:49 /bin/mkdir*

(1) /desti/Users/e029001

[e029001@....] $ mkdir new

mkdir: cannot create directory `new': Permission denied

(1) /desti/Users/e029001

[e029001@....] $ rpm -qf $(which mkdir)

(1) /desti/Users/e029001

[e029001@...] $ touch test

touch: cannot touch `test': Permission denied

coreutils-5.2.1-31.7

(1) /desti/Users/e029001

[e029001@....] $ rpm -qf $(which touch)

coreutils-5.2.1-31.7



Thanks,
Reply With Quote
  #2 (permalink)  
Old 01-11-2009, 04:39 AM
Junior Member
User
 
Join Date: Jan 2009
OS: Solaris
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unixmen is on a distinguished road
Default no access

[e029001@...] $ ll $(which mkdir)

-rwxr-xr-x 1 root root 25060 Dec 24 02:49 /bin/mkdir*

(1) /desti/Users/e029001
[e029001@....] $ mkdir new

mkdir: cannot create directory `new': Permission denied


you dont have access to this directory . its a root directory . you must be root to do this,
of change the directory owner ,
su -
chown e029001:e029001 /desti/Users/e029001

. Voila
now you can make files and directories




regards
Unixmen - Linux howto and Tutorials - Unixmen Home
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
shell script to search specific file from txt file inside zip file and extract it aasif.shaikh Shell scripting 2 05-31-2008 07:44 PM
How to create a bigfile (> 1Gb)? dnquynh Shell scripting 5 04-01-2008 07:58 PM
create directory vyshas Shell scripting 3 01-14-2008 08:14 AM
how to create multiple file in a single command selvam Shell scripting 3 07-26-2006 02:01 AM
Create a new ext3 file system if a disk was added to the sys chiku Linux software 1 07-23-2006 09:55 PM


All times are GMT +5.5. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38