LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-18-2005, 06:31 AM   #1
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
Exclamation User unability to access folders in GUI...


I understand that is could be useful to limit users in an office for instance but for home use it's odd not to have access to folders... it brings me to another annoying feature which is the ability to mkdir only by root...

If i "su" myself in a command line i can access those folders but if i'm already logged in as a user i cannot access them in GUI.

Is there an option to allow a user to access those folders with GUI or do i have to log on as root everytime i get pissed?
 
Old 02-18-2005, 06:41 AM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
What folders? There are security reasons some folders require root. You don't usually need to access those folders for normal desktop use.
 
Old 02-18-2005, 06:49 AM   #3
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
Sorry i forgot to mention that im using fedora core 3 if that makes any difference.

i know there is that kind of folders... im not interested in those...
imagine a case in which i need to create a folder so i can import files from my nts system and put them there... i get stuck again because only root can do it...

[infernal@fedora windows]$ mkdir /example
mkdir: cannot create directory `/example': Permission denied

so afterwards if i need to gain access to those files in GUI i can't... it want's me to be root..
 
Old 02-18-2005, 06:50 AM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
If anyone could see (and modify) that folders/files than you wouldn't be needing a root account anymore. Therefore a key-concept of Unix/Linux would be lost: security.
Why do you need to see that folders as a regular user anyway? And you don't need to log in as root "anytime you get pissed". Just use 'su'.
Also many programs that use a GUI (at least in KDE) have an "Administration mode" button which asks for root's password to enable you to do whatever you want. Also in KDE there's GKsu which you can use to run programs with root privilegs.
 
Old 02-18-2005, 06:55 AM   #5
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
You posted just as I was typing. There's a workaround for that: 'su' -> 'mkdir <dir_name>' -> 'chown user:group <dir_name>' or 'chgrp group <dir_name>'.
 
Old 02-18-2005, 06:58 AM   #6
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
You just need to set up your mount point and folder permissions correctly... ie I have my media in folders like /media1 and /media2 which I can access as a normal user and store mp3's and share them over the network... Easiest solution would be to create the folders in you user pace in home... or set up a link, etc... I really depends on what you want to do and where you have the disk space, etc...
 
Old 02-18-2005, 07:07 AM   #7
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
harken - yeah i know i can go anywhere with "su" command...
the thing is that i need to access folders in GUI "File Browser" there i can't define that i want to access a folder as root (at least i dont know how yet)... it's default is to assume that im the logged in user.

amosf - yeah that's the thing im interested in... where do i define those mounting points for folders?
 
Old 02-18-2005, 07:13 AM   #8
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Partly in the /etc/fstab and partly in the folder permissions ie. using the /media1 directory as an example.

/dev/hdb9 /media1 ext3 suid 1 1

drwxrwxrwx 13 root root 4096 Feb 18 22:10 media1/

or make a group... This is an insecure way to do it, but works...
 
Old 02-18-2005, 07:22 AM   #9
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
Red face

ah... yep the chmod worked... i feel kinda dumb for asking that question because i forgot the chmod... but hey, i'm a n00b

thanks for your time guys
 
  


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
compare folders GUI linmix Linux - Newbie 4 09-12-2011 06:21 PM
normal user access folders jwijesundra Linux - Newbie 3 01-16-2005 11:46 AM
User and Group Access to Folders nutthick Linux - Security 5 12-19-2004 08:22 PM
no access for other folders dineshb Linux - General 2 03-18-2004 07:34 AM
using gui browser with samba turns up empty shared folders wlfdgcrkz Linux - Software 1 04-25-2003 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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