LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2004, 05:05 PM   #1
sonesay
Member
 
Registered: May 2004
Location: AUCKLAND
Distribution: Fedora core 2 , RH9
Posts: 64

Rep: Reputation: 15
file permissions


#I have created this folder as root

/backup/

[root@P1 /]# ls -l
total 209
drwxr-xr-x 5 root root 4096 May 27 01:17 backup

#inside it there are folder 3 folders

[root@P1 /]# ls -l backup
total 12
d-wx------ 2 ninja ninja 4096 May 27 01:17 ninja
drw------- 2 sone sone 4096 May 27 01:27 sone
drw------- 2 sonint99 sonint99 4096 May 27 01:30 sonint99

#I changed ownership of those files to the 3 useraccounts they belong to.
#here is the sonint99 folder. there are 2 compressed files that i created as #root then changed ownership to sonit99.


[root@P1 /]# ls -l backup/sonint99
total 16
-r-x------ 1 sonint99 sonint99 5496 May 27 09:16 ch-backup.tar.gz
-r-x------ 1 sonint99 sonint99 5342 May 27 01:30 pa-backup.tar.gz

#problem 1

[sonint99@P1 /]$ ls -l /backup/sonint99
ls: /backup/sonint99/ch-backup.tar.gz: Permission denied
ls: /backup/sonint99/pa-backup.tar.gz: Permission denied

#problem 2

[sonint99@P1 /]$ cp /backup/sonint99/pa-backup.tar.gz /home/sonint99/
cp: cannot stat `/backup/sonint99/pa-backup.tar.gz': Permission denied

#Does the problem lie with the /backup/ folder permissions? i chmod 777 #to it but still same result when i try and copy or ls the users backup dir.
#any help much appriciated. thanks
 
Old 05-26-2004, 05:10 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You need to make sure you have exec permissions on directories too.
 
Old 05-26-2004, 05:13 PM   #3
sonesay
Member
 
Registered: May 2004
Location: AUCKLAND
Distribution: Fedora core 2 , RH9
Posts: 64

Original Poster
Rep: Reputation: 15
ahh thank you. it works now .. i add x to sonint99 folder.
 
Old 05-26-2004, 05:20 PM   #4
sonesay
Member
 
Registered: May 2004
Location: AUCKLAND
Distribution: Fedora core 2 , RH9
Posts: 64

Original Poster
Rep: Reputation: 15
I have another question but i dont want to start another thread. I want to put a file in the /home/user/ dir so /home/user/link e.g
i want link to be a short cut to /backup/user/ dir. similar to a windows short cut. does it work the same in gui and cmd line mode?
 
Old 05-26-2004, 05:22 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Yes - you can do something like:
ln -s /backup/user /home/user/backup
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 06:35 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 05:08 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 07:03 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 05:42 PM


All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration