LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-29-2003, 11:46 PM   #1
Doctor Zin
LQ Newbie
 
Registered: Sep 2003
Location: da UP
Distribution: Redhat 8 / Mandrake 9
Posts: 2

Rep: Reputation: 0
su


I'm using Redhat 8 and can't figure this one out. If I don't log in as
root I can't save a document of any type. If I'm in a terminal I know too
su and I can save then in terminal but if I'm running say, Open Office
or something I can't save the file. Now If I su before I startx then
KDE starts which is fine but I try too and want too use Blackbox as a
rule.
Does that make sense? Does to me...Ha Ha!!

What I'd like to know is how I can save files not being root in X and I
don't want to put in roots password everytime I start kppp.

Hope someone can help!!
Thanks,

Zin
 
Old 09-30-2003, 12:16 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you must save them in your home folder.

If you are in your home folder then maybe you tried to change your username or something and got the permissions wrong now.
this should fix it

Code:
chown -R username.username /home/username
 
Old 09-30-2003, 10:43 AM   #3
Doctor Zin
LQ Newbie
 
Registered: Sep 2003
Location: da UP
Distribution: Redhat 8 / Mandrake 9
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by DavidPhillips
you must save them in your home folder.

If you are in your home folder then maybe you tried to change your username or something and got the permissions wrong now.
this should fix it

Code:
chown -R username.username /home/username
Thanks. If I want to save in another folder I need to change my permissions to that folder?

Zin
 
Old 09-30-2003, 10:27 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yes, exactly.

You may want to use group permissions if you have more than one user that will need access.

you can create a group and add users to it

groupadd groupname

gpasswd -a username groupname

chown root.groupname /path/to/foldername


chmod the folder for the permissions you want, most likely it will already be at 755

drwxr-xr-x

for group write access you want 775 group has rwx, other has rx

drwxrwxr-x

to prohibit other users not in the group use 770

drwxrwx---

chmod 770 /path/to/foldername
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:44 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
Open Source Consulting | Domain Registration