Difference between pages "Experimental branch" and "File permissions"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Upgrading an existing Funtoo installation to experimental)
 
 
Line 1: Line 1:
{{Note}}Funtoo Experimental is where we test bleeding-edge stuff. Don't use experimental unless you are helping us test new features.
+
== chmod ==
== Status ==
+
You can change file permissions with:
Future plans:
+
<console>
* funtoo profile integration
+
$##bl## chmod [r][g][u] [file]
* udev and friends bump
+
</console>
 +
[r] = number for root permissions, [g] = number for group permissions and [u] = number for user permissions.
 +
<pre>7 = 4+2+1 (read/write/execute)
 +
6 = 4+2 (read/write)
 +
5 = 4+1 (read/execute)
 +
4 = 4 (read)
 +
3 = 2+1 (write/execute)
 +
2 = 2 (write)
 +
1 = 1 (execute)</pre>
  
== Introduction ==
+
== chown ==
 
+
You can change owner and group of file with:
The Funtoo experimental branch is used by Funtoo Core Developers to try and test new features to be included in Funtoo stable and current branches when ready. Users that want to help the developers test those new features are welcome to switch to the experimental branch and report problems on IRC or the forum. However, problems may arise from using it and there is no guarantee that your system will stay usable.
+
 
+
== Upgrading an existing Funtoo installation to experimental ==
+
 
<console>
 
<console>
###i## rm -rf /usr/portage
+
###i## chown [user]:[group] [file]
 
</console>
 
</console>
Add the following line (or modify it if it's already there):
+
You can change owner of folder and files inside recursively with:
 
<console>
 
<console>
###i## nano -w /etc/make.conf
+
###i## chown -R [user]:[group] [folder]
SYNC="git://github.com/funtoo/experimental-mini-2011.git"
+
 
</console>
 
</console>
  
=== First method ===
+
== gpasswd ==
 +
You can add user to group with:
 
<console>
 
<console>
###i## emerge --sync     
+
###i## gpasswd -a [user] [group]
 +
</console>
 +
You can remove a user from a group with:
 +
<console>
 +
###i## gpasswd -d [user] [group]
 
</console>
 
</console>
  
Verify that the experimental tree has been properly installed:
+
== useradd ==
 +
You can add a new user with:
 
<console>
 
<console>
# cat /usr/portage/.git/config
+
###i## useradd -g users -G wheel,audio,portage -m [user]
...
+
###i## passwd [user]
[remote "origin"]
+
</console>
fetch = +refs/heads/*:refs/remotes/origin/*
+
You can delete a user with:
url = git://github.com/funtoo/experimental-mini-2011.git
+
<console>
...
+
###i## userdel [user]
 
</console>
 
</console>
  
You should see that the git repository is pointing to experimental-mini-2011.git.
+
== groupadd ==
 
+
You can add a new group with:
If for any reason this method did not work, use the second method to manually clone the experimental branch.
+
=== Second method ===
+
 
<console>
 
<console>
###i## rm -rf /usr/portage
+
###i## groupadd [group]
###i## cd /usr
+
</console>
###i## git clone git://github.com/funtoo/experimental-mini-2011.git portage
+
You can delete a group with:
###i## emerge --sync
+
<console>
 +
###i## groupdel [group]
 
</console>
 
</console>
  
== Installation from an experimental branch stage3 ==
 
You can find some stage3s on the Funtoo mirror: [http://ftp.osuosl.org/pub/funtoo/funtoo-experimental/]. These stages are updated weekly, possibly more often during active experimental development.
 
 
== Building stage3s using Metro ==
 
You may build your own stages of the experimental branch using [[Metro]]. The stages from the Funtoo mirror ([http://ftp.osuosl.org/pub/funtoo/funtoo-experimental/]) can be used as a seed. A funtoo-experimental target is available.
 
 
== History ==
 
 
=== Iteration 1 (Completed Dec 16, 2011) ===
 
 
Implementation and stabilization of a new set of toolchain packages:
 
 
* gcc-4.6.2
 
* binutils-2.21-r1
 
* linux-headers-2.6.39
 
* glibc-2.13-r4
 
* udev-171-r1
 
* patched lvm2-2.02.85
 
* Several patches to solve problems building with this toolchain
 
 
And some other features:
 
* [[Portage Dynamic Slot]]
 
* Modifications of Mesa, libdrm and radeon drivers to support each type of Radeon video card individually, as well as masked -9999 versions of those packages.
 
 
[[Category:Portage]]
 
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]
[[Category:Featured]]
 

Revision as of 18:19, 11 January 2014

Contents

chmod

You can change file permissions with:

$ chmod [r][g][u] [file]

[r] = number for root permissions, [g] = number for group permissions and [u] = number for user permissions.

7 = 4+2+1 (read/write/execute)
6 = 4+2 (read/write)
5 = 4+1 (read/execute)
4 = 4 (read)
3 = 2+1 (write/execute)
2 = 2 (write)
1 = 1 (execute)

chown

You can change owner and group of file with:

# chown [user]:[group] [file]

You can change owner of folder and files inside recursively with:

# chown -R [user]:[group] [folder]

gpasswd

You can add user to group with:

# gpasswd -a [user] [group]

You can remove a user from a group with:

# gpasswd -d [user] [group]

useradd

You can add a new user with:

# useradd -g users -G wheel,audio,portage -m [user]
# passwd [user]

You can delete a user with:

# userdel [user]

groupadd

You can add a new group with:

# groupadd [group]

You can delete a group with:

# groupdel [group]