Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 24th, 2003, 03:26 PM
Tbone Tbone is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: NYC
Posts: 19 Tbone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Tbone
Question [RedHat 9] Permissions error (non-root writing ability)

I've been using Linux for a couple of months and I thought I had all the permissions stuff learned pretty good but I guess not. For some reason, if I use chmod on a file (i.e. chmod 777 index.html) under root and set all the permissions properly I cannot write to the file with a username outside of root. I want to simply allow another user (i.e. user1) to modify his own files. Simple, right? For some reason it does not work for me

Even if I chown -R user1.group1 /files/* to a user and limit the chmod properties to that one user (disable group and world read, write, and execute privileges) that particular user still cannot write to the file! However, root can do everything it wants.

So, if anyone can help me figure out why I cannot get permission to write for other users I would really really appreciate it! Thanks for any and all help.

From my console:

[test2@pjbtest htdocs]$ su root
Password:
bash-2.05b# chown test2.ftp-user index.html.se
bash-2.05b# chmod 775 index.html.se
bash-2.05b# su test2
[test2@pjbtest htdocs]$ ls -l index.html.se
-rwxrwxr-x 1 test2 ftp-user 1700 Jun 28 2001 index.html.se
[test2@pjbtest htdocs]$ rm index.html.se
rm: cannot remove `index.html.se': Permission denied
[test2@pjbtest htdocs]$

The commands are being run remotely through ssh.

Reply With Quote
  #2  
Old May 24th, 2003, 05:59 PM
Tbone Tbone is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: NYC
Posts: 19 Tbone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Tbone
Hah, duh!

Forgot to change the privileges of the directory itself!

I'm all good now

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > [RedHat 9] Permissions error (non-root writing ability)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway