Setting permissions for all subfolders in Nautilus

I’m trying to set permissions on all subfolders by right clicking the top folder, permissions, setting the desired values, and then clicking the "Apply permissions to the enclosed files. It takes on the top Folder but not on any of the subfolders or their files.

How can I set the permissions for all files and subfolders under a top level folder?

Hi
It works for me on 11.2? You need to set Folder Access, then File
Access (for each of the conditions, user,group,other), then ensure there
is a check in the checkbox if your wanting execute permissions.

I do note the the File Access changes back to “–” but if you open a
terminal in the folder (use right-click) and run the command ls -la it
changes the permissions on the files and folders down from the root
directory.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 3:46, 2 users, load average: 1.15, 1.60, 0.99
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Thanks for the reply! It’s sort of working but just maybe not the way I expected it to. Here’s what I did.

I changed the ownership from root to stever, groups from root to Developers, and gave those and Others permission to create and delete files. I checked the execute checkbox and clicked apply to enclosed files.

The top level folder changed fine, but the subfolders are still owned by root, group is root, but the others did change to create and delete files. I was expecting the ownership and group to change in the subfolders too… no?

sr

Hi
How are you starting Nautilus, in super user mode?

I guess I’m so use to the CLI for somethings;


sudo chown -R stever:developers /some/directory
sudo chmod 755 -R /some/directory


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 17:52, 2 users, load average: 0.23, 0.25, 0.43
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Yes, for setting the permissions, I’m logging on as root and then opening Nautilus… setting the permissions from there.

I could use chown like you suggest, just wanted to make sure I wasn’t missing something.

You should never never ever log into a GUI as root.

There should be a super user mode browser in your menus.

I’m new to Linux but I’ve seen references to not logging on as root with a GUI. Why is that?

I couldn’t find the super user mode browser, where would I find that?

Hi
Press alt+F2 (run command) and use;


gnomesu nautilus --no-desktop --browser %U

If you drag and drop the Nautilus icon from the slab menu to your
desktop and then right click and select properties, you can add the
command gnomesu at the beginning.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 1 day 23:25, 3 users, load average: 0.36, 0.27, 0.38
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Thanks! That’s tons easier than switching users all the time.

Why is it you shouldn’t log on as root to a GUI?

It is too easy to bork a user account. What happens is the as root in a GUI you go to some user directory now certain files get rewritten but not as user but as root. So now a user can not use those files. These tend to be important files and it can happen without the person who is root doing anything but going to a user accounts directory. Fretting out the damage can be very difficult for a newbee.

Best advise DO NOT LOG INTO A GUI AS ROOT. :wink:

stevericketts wrote:
> I’m new to Linux but I’ve seen references to not logging on as root with
> a GUI. Why is that?

you should never log into KDE/Gnome/XFCE or any other *nix-like
graphical user interface desktop environment as root…

doing so 1) opens you up to several different security problems, 2)
too many too easy ways to damage your system no matter how careful
your actions (example: just browsing in your home directory while
logged into KDE/Gnome/etc as root can lock you out later as yourself
due to permissions damage), 3) and, anyway logging into KDE/etc as
root is never required to do any and all administrative duties…

so, always log in as yourself, and “become root” by using a root
powered application (like YaST, File Manager Superuser Mode) or using
“su -”, sudo, kdesu, or gnomesu in a terminal to launch whatever tool
is needed (like Kwrite to edit a config file)…read more on all that
here:

http://en.opensuse.org/SDB:Login_as_root
http://docs.kde.org/stable/en/kdebase-runtime/userguide/root.html
http://tinyurl.com/6ry6yd
http://tinyurl.com/ydbwssh

> I couldn’t find the super user mode browser, where would I find that?

by browser do you mean like firefox or opera to ‘browse’ the internet?
NEVER do that, ever…

if you mean a “file browser” to use locally, then that depends on
which desktop environment (aka: DE like KDE, or Gnome, or LXDE, or
Xfce or or or or or) you are using…but, in most you go something
like: Menu > System > File Manager, and look around…there you should
find either konqueror or dolphin or nautilus with super-user powers…


DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
posted via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio

Ah, thanks guys. Makes sense. I’m using the gnome desktop and as a newbie coming from Windows, it’s all too easy to do things in root using the GUI… especially since the terminal commands are still a bit of a mystery to me. As myself, I was constantly getting the “permission denied” every time I tried something but I can see that it would be better to do things the “right” way.

Thanks again for the explanation.

sr