Home
Help
Login
Register
Wiki
Website
Fossunet
Welcome Guest, please
login
or
register
.
Username:
1 Hour
1 Day
1 Week
1 Month
Forever
Password:
The Dreamlinux Forum Community
Main Support Categories
General Support Categories
Topic:
Exercise caution when running users-admin_fix.rb
Pages: [
1
]
Go Down
0 Members and 1 Guest are viewing this topic.
Topic Tools
Topic Tools
Print
October 10, 2009, 12:10:45 AM
LarryDC
Forum Donator
New Dreamer
Thanks 1
Offline
Posts: 14
Exercise caution when running users-admin_fix.rb
Dream Linux 3.5 is my main distro. I admittedly guess as to what apps do. I will not anymore. Always cat or view any script before running it ... especially as root!
If you have any directories below /home, do NOT run users-admin_fix.rb. If, like me, you did have such directories, and do run the script, you will NOT have any directories left afterwards, as I now don't.
Running a multi distro grub, I keep different users from the distinct distros on the same home partition by simply changing the final letter of the user name. 26 is way more than I need. I also have a common storage partition mounted as /home/large. It is now empty. Unfortunately, I also had a whole vfat data partition mounted as /home/win_d which is now empty.
The script serves a good purpose, just not one suited to my installation. So if you have any directory or folder below /home, beware.
Since no one else has reported anything about this, my use of the /home partition is apparently not common. All the better.
Logged
Linux User #305687 -
My Hardware Profile
Main distro: Dream 3.5 PLUS on 20 partitions: Win98SE(to interface with my Psion 5mx), Elive 1.0, Zenwalk 4.8, Damn Small Linux 3.4, BEOS, BeaFanatIX 2006.R3, Absolute 12.1.0, Xubuntu 7.10, Pequelin, Linux Mint 3.0, Paldo 2008-6-15, Puppy 3.01, Mustang 2.5.6
October 10, 2009, 05:17:58 PM
richs-lxh
Forum Founder
Dream Hacker
Thanks 398
Offline
Posts: 5529
Re: Exercise caution when running users-admin_fix.rb
Thanks for posting the warning Larry. Incidentally, why did you run the script?
Incidentally, for others, this is the part of the script which removes any directory in the /Home folder which belongs to a user not listed in the passwd file:
Code:
rm -rf /home/# {user}"
Logged
|
Linux-Hardcore - /home
|
Tota Linux - For Conky and WM Hackers
|
Fossunet - Foss User Network
|
October 11, 2009, 12:13:22 PM
LarryDC
Forum Donator
New Dreamer
Thanks 1
Offline
Posts: 14
Re: Exercise caution when running users-admin_fix.rb
Quote from: richs-lxh on October 10, 2009, 05:17:58 PM
Incidentally, why did you run the script?
I was trying to burn an .iso via Brasero as a user. It would not show anything writable in either my R/W dvd drive nor when I put the blank DC in my R/W cd drive. I thought it might be user group membership, which it was.
I did my usual user[Tab] to see what came up. when I saw there was a ruby "-fix" script. I remembered the 3 different easy-inst* scripts and, without checking those powerful final lines of the script, ran it.
By the way, Vector Linux also uses /home to locate a valuable (I have to reinstall the distro it now.) ftp (/home/ftp) directory. I always wanted to do some ruby scripts. If I get a chance, I'll try and write the code necessary to insert into nelsongs script that would list the subdirectories about to be deleted and ask for confirmation before proceeding.
Though it is way beyond me, what would really make it an excellent script would be making that list a picklist of the directories that you wanted to keep, i.e., those that you know you DO NOT want to be deleted.
Logged
Linux User #305687 -
My Hardware Profile
Main distro: Dream 3.5 PLUS on 20 partitions: Win98SE(to interface with my Psion 5mx), Elive 1.0, Zenwalk 4.8, Damn Small Linux 3.4, BEOS, BeaFanatIX 2006.R3, Absolute 12.1.0, Xubuntu 7.10, Pequelin, Linux Mint 3.0, Paldo 2008-6-15, Puppy 3.01, Mustang 2.5.6
October 11, 2009, 05:41:49 PM
richs-lxh
Forum Founder
Dream Hacker
Thanks 398
Offline
Posts: 5529
Re: Exercise caution when running users-admin_fix.rb
The thing is, when you make a remix distribution, you don't want your /home directory and all it's contents available for everybody to see, hence the reason they get deleted before the creation of the Live CD structure, leaving only Dreamer.
Remastersys also does this when "dist" option is chosen, which when run on an installed system can also have the same effect.
At least we have learned that we don't just run any script without checking what it does first. I've done it as well while building distros, so don't be to hard on yourself, and thanks for posting the warning.
rich
Logged
|
Linux-Hardcore - /home
|
Tota Linux - For Conky and WM Hackers
|
Fossunet - Foss User Network
|
Pages: [
1
]
Go Up
The Dreamlinux Forum Community
Main Support Categories
General Support Categories
Topic:
Exercise caution when running users-admin_fix.rb
Jump to:
Please select a destination:
-----------------------------
Absolute Beginner Talk
-----------------------------
=> Beginners Section
-----------------------------
Main Support Categories
-----------------------------
=> General Support Categories
===> Live CD Boot Up Support
===> Install and Setup Support
===> USB Pendrive Install
===> Gnome Desktop Support
===> Xfce Desktop Support
===> Fluxbox and other DE/WM
=> Dreamlinux Applications
===> Easy-Install Support
===> DCP - Dreamlinux Control Panel
=> Hardware Support Categories
===> Graphics Cards & Monitor
===> Network Cards, Wireless
===> Sound Card Support
===> Keyboards & Language
===> Printer, Scanner & Fax
===> Webcams and Cameras
===> Bluetooth Devices
===> Dell Users
===> Mac Users
===> EeePC and Netbook Support
===> Laptop Specific Support
=> Software and Application Support
===> Internet Browser Support
===> Audio, Music applications
===> Dvd/Video reproduction apps
===> Virtual Desktop Support
===> MKdistro Support
===> Web & Mail Server Help
===> Wine And Wine-Doors
===> Business Software
===> Programming and Scripts
===> Messenger & Email Clients
===> Security, Firewalls, Antivirus
=> Hobbies, Passtimes and Education
===> Games, Gaming & Linux
===> Photography & Linux
===> Design & Graphics with Linux
===> Science & Linux
===> Linux Educational Software
===> Dreamlinux Projects
=> Eye Candy For Your Desktop
===> Avant Window Navigator (AWN)
===> Conky - Linux Desktop System Monitor
===> Engage Dock
===> Compiz Fusion Support
===> Themes and Wallpaper
===> Other Mac-Style Docks
===> Dreamlinux Gallery
===> Dreamlinux Videos
=> Preinstalled Dreamlinux
===> GreenDream
-----------------------------
International Support Forums
-----------------------------
=> International Support
===> Español
=====> Noticias y Anuncios
=====> Live CD
=====> Instalación
=====> HowTo's y Tips
=====> Internet/Red
=====> Tarjeta Grafica
=====> Aplicaciones
===> Italiano
=====> Novità e Annunci
=====> Live CD
=====> Installazione
=====> Internet/Network
=====> Schede grafiche
=====> Applicazioni
=====> Trucchi, Suggerimenti ed How To
===> Deutsch
=====> News und Ankündigungen
=====> Live CD
=====> Installation
=====> Internet/Netzwerk
=====> Grafikkarten
=====> Anwendungen
=====> Sonstiges - alles was euch sonst bewegt
===> Francais
=====> Nouvelles et Annonces
=====> Live CD
=====> Installation
=====> Internet / Réseau
=====> Carte Graphique
=====> Applications / logiciels
=====> Hors-sujet
===> Portuguese/Brasilian
=====> Novidades e Avisos
=====> Live CD
=====> Instalação
=====> Internet e Rede
=====> Placas de Vídeo
=====> Aplicativos
===> Русский - Russian
=====> Новости и объявления
=====> LiveCD
=====> Установка
=====> Сеть/Интернет
=====> Аппаратура/Железо
=====> Обсуждение дистрибутива/замечания и предложения
=====> Разговоры обо всем
===> Nederlands
-----------------------------
Forum Community Discussions
-----------------------------
===> Tips, Tricks, Guides and Tutorials
===> Testimonials & Distro Suggestions
===> Announcements, News, & Chat
===> Friends of Dreamlinux Forums
===> Spammer Board
-----------------------------
Dreamlinux 4.0 Alpha - Beta - RC - Testing
-----------------------------
=> Alpha, Beta, RC General Board
===> Alpha Testing
===> Beta Testing
===> RC Testing
Loading...