LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   User unability to access folders in GUI... (https://www.linuxquestions.org/questions/linux-newbie-8/user-unability-to-access-folders-in-gui-291785/)

Infernal211283 02-18-2005 05:31 AM

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?

amosf 02-18-2005 05:41 AM

What folders? There are security reasons some folders require root. You don't usually need to access those folders for normal desktop use.

Infernal211283 02-18-2005 05:49 AM

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..

harken 02-18-2005 05:50 AM

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.

harken 02-18-2005 05:55 AM

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>'.

amosf 02-18-2005 05:58 AM

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...

Infernal211283 02-18-2005 06:07 AM

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?

amosf 02-18-2005 06:13 AM

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...

Infernal211283 02-18-2005 06:22 AM

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


All times are GMT -5. The time now is 11:48 PM.