SUDO command - How to remove a User using Terminal?
So I just inherited from my coworker's MacBook Pro. I then decided to transfer all of my files and realized that the root folder was still on his name. I changed the User's name in "System Preferences" but that did not change the root folder's name. I then went to Terminal and tried to change the folder's name using the "mv OldFoldersName NewFoldersName" and the prompt said Permission denied. I then used "sudo mv OldFoldersName NewFoldersName". After restarting my computer, all the files were gone and I landed on a "LION first time USE" type of Desktop. All my files are gone and terminal shows me two users' names under /Users/ => OldUser and NewUser.
What can I do to recover my old files? What can I do to repair my Mistake and only have one User?
Thank you very much for your help.
10Kg wrote:
All my files are gone and terminal shows me two users' names under /Users/ => OldUser and NewUser.
What can I do to recover my old files?
If your adapt at using Terminal, why don't you hook up a blank external drive, command s boot into Single user root mode,
ls /Users
then cd to that directory or mv it to the external drive?
Any why are you messing with Terminal and on your only copy of your files?
Kind of risky right?
Nearly everything on a Mac has been figured out and a safe GUI ability to allow users to do things, there is no need to risk the dangers of the Terminal and unknown under workings.
But now you have to revert to your backup and start all over like John said.
Read here for more options
https://discussions.apple.com/docs/DOC-3046
https://discussions.apple.com/docs/DOC-3045
Similar Messages
-
How to remove Exif data using terminal
I want to remove Exif data from images using Terminal
I've googled and cant find anything
There's a Linux command, but nothing fro Terminal - or at least I cant find
Thanks
Omar@Frank Caggiano, thanks. i only want to remove and not do anything else. exiftool allows u to write as well
my ideal solution: not to install anything
that's something that comes from windows: fearing that installing things will clog up ur system. lol
i need imagemagik for other image editing anyway
thanks for the replies -
I been trying to find the terminal version of creating a root user since I don't know my admin password and want to delete that user.
You don't need to enable the root user. Just change the password for the account.
Forgot Your Account Password
For Lion, Mountain Lion, or Mavericks
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
When the menubar appears select Terminal from the Utilities menu.
Enter resetpassword at the prompt and press RETURN. Follow
instructions in the dialog window that will appear.
Or see:
Reset a Mac OS X 10.7 Lion Password
OS X Mountain Lion- Reset a login password,
OS X Mavericks- Solve password problems,
OS X Lion- Apple ID can be used to reset your user account password.
For Snow Leopard and earlier with installer DVD
Mac OS X 10.6- If you forget your administrator password,
OS X- Changing or resetting an account password (Snow Leopard and earlier).
For Snow Leopard and earlier without installer DVD
How to reset your Mac OS X password without an installer disc | MacYourself
Reset OS X Password Without an OS X CD — Tech News and Analysis
How To Create A New Administrator Account - Hack Mac -
How to remove the Sessions used in the application
Hai Techies,,,
i am using many number of sessions in my application, for example i am using 5 sessions in reports module
my application is a web based application
if can't remove the sessions it contains the huge amount of data , my application is going into mess, and the application performance will be decreased..
Can anybody tell the solution for this Problem
How to remove the Sessions used in the application
Hoping a reply
Thanks & Regards
Krishna mangamuriHai Gita,
i am not able to do the session invalidate method bcoz, i am mainatainting the session from login along with the current userid who is login into the system and putting some of the data in session....
thats session is to be valid upto when i click on logoff link
except that i have to remove the sessions in my application
while navigating from one jsp to another i have to remove the sessions, bit somes times that sessions may be used somewhere
Can u Understand My problem
session remove method may also helpful to me but some times it will casue some prob to me
Is there any other Way to remove the sessions in the Application ????
Thanks & Regards
Krishna Mangamuri -
Is there a way to enable root user using terminal?
is there a way to enable root user using terminal? i've tried in directory app but its not letting me log in under root since repairing permissions
Hi
If all you're seeing is bash-3.2# you are logged in as root. Type exit followed by a return. What do you see now?
I think most of your questions could be answered with some judicious reading? Download as many admin manuals you can:
http://www.apple.com/server/macosx/resources/
Tony -
How to remove one user from SSO in ESS
Hello Team,
We have configured ESS with sso and working fine but onw user wants to remove his user id from sso as he shares his pc with others too. Please let me know can this be done and how?
Best Regards,
Tushar.Hi Tushar ,
what raghavendra suggested is correct.
if user wants to share with PC to some other person . He need not to login to portal . without having ESS role how he access ESS applications . except logging to portal he can share with PC to others .
and ESS point of view 1 to 1 mapping , no user mapping .
Surekha. -
How to create a user using XML and specifying addional attributes that are objects
I'm trying to create a user using XML and specifying some attributes that are objects and not sure how to do it. How would I set the DirectoryUserAcl to Public?
Here's the xml file:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl> ??? </DirectoryUserAcl>
<DefaultAclBundleAcl> ??? </DefaultAclBundleAcl>
<HomeFolderPolicyBundleAcl> ??? </HomeFolderPolicyBundleAcl>
</SimpleUser>I figured out the answer:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl classname="SystemAccessControlList" refType="name">Public</DirectoryUserAcl>
</SimpleUser>
null -
How to remove infopath ribbon using Master Page?
Hi All,
I would like to remove infopath ribbon using Master Page, using f12 removed like "<div id="s4-ribbonrow"
class="s4-pr s4-ribbonrowhidetitle" style="display:none">". But how to perform in original master page? Thanks in advance!Hi,
Based on your description, my understanding is that you want to remove InfoPath ribbon using Master Page.
using F12 to find the <div id=”RibbonWrapper”> section:
Navigate to :C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\ FormServer.aspx. Add the following CSS into <head runat="server"></head>section:<style type="text/css">
#RibbonWrapper
display: none !important;
</style>
Best Regards,Lisa Chen
Lisa Chen
TechNet Community Support -
How to remove YouTube videos using ipad2?
I can't figure out how to remove videos from YouTube using ipad2? Is there any way?
I'm sorry, but there is not. You just have to access your account online. From there, go to "Your Videos" then check mark each video you would like to remove, then select "Delete" to remove. Hope this helps!
-
How to remove trailing zeros using EngineeringFormatInfo?
HI,
I found a measurement studio formatter for SI notation.
For details, see the NI document.
Here, I want to know how to remove any trailing zeros. I could not find any information about this.
For example,
code : string result = string.Format(EngineeringFormatInfo.Default, {0:s5}, double value)
if value = 1.2345678E-3, result is 1.23457E-3. It is ok.
if value = 1.2E-3, result is 1.20000E-3. But I want to get "1.23m".
In labview, I usually use "%#.5p" format string.diluculo wrote:
HI,
I found a measurement studio formatter for SI notation.
For details, see the NI document.
Here, I want to know how to remove any trailing zeros. I could not find any information about this.
For example,
code : string result = string.Format(EngineeringFormatInfo.Default, {0:s5}, double value)
if value = 1.2345678E-3, result is 1.23457E-3. It is ok.
if value = 1.2E-3, result is 1.20000E-3. But I want to get "1.23m".
In labview, I usually use "%#.5p" format string.
I don't understand how you are getting 1.23457E-3 ? And claiming that is okay.
If you are using the format string that you claim you are using, then you should be getting 1.23457m.
It sounds like you are using string result = string.Format(EngineeringFormatInfo.Default, {0:E5}, value) -
How to let SAP user use SSO to access Application in DMZ?
Hi All,
Our J2EE application is running on a system in DMZ which can not be connected with LDAP. So I am wondering if it's possible to let SAP user use SSO to access our application.
After talking with my colleague I think the only way is to import SSO public key to our WebAS and create user in UME and then assign user to the corresponding public key, but anybody know where to download SSP verification file or is it allowed to download and import into another system at all?
Regards,
BinHi,
Take a look at this example, it uses property nodes to select tha
active plot and then changes the color of that plot.
If you want to make the number of plots dynamic you could use a for
loop and an array of color boxes.
I hope this helps.
Regards,
Juan Carlos
N.I.
Attachments:
Changing_plot_color.vi 38 KB -
How to find 'OS user' used by Oracle Reports when report output is written
Hi ,
I would like to find the 'OS User' used by concurrent manager when a Report output is written on the OS file system after the report run is completed. The report is registered as a concurrent program in Oracle Application environment.
Any help would be appreciated.Pls respond urgently.
Thanks
SudeepThere is only one OS user that creates reports out and log files, that is applSID, the owner of the applications filesystems. The only other OS user that creates files in an Oracle Applications environment is oracle (or oraSID) if a stored procedure creates a file via utl_file_dir, or external table etc.
-
You can use ldapmodify found in <ServerRoot>/shared/bin
for example
./ldapmodify -h ldaphost -D "cn=directory manager" -w password -f <name of LDIF file>
Here's an example LDIF file
dn: uid=cms,ou=people,o=balius.com,o=Universe
changetype: add
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: inetUser
objectClass: ipUser
objectClass: inetMailUser
objectClass: inetLocalMailRecipient
objectClass: nsManagedPerson
objectClass: userPresenceProfile
cn: Chad M. Stewart
sn: Stewart
initials: CMS
givenName: Chad
pabURI: ldap://host:389/ou=cms,ou=people,o=balius.com,o=Universe,o=pab
mail: [email protected]
mailDeliveryOption: mailbox
mailHost: my.mailhost.com
uid: cms
dataSource: Chad by hand
userPassword: users-password-here
inetUserStatus: active
mailUserStatus: active
mailQuota: -1
on a subsequent search you'd see something like
userpassword: {SHA}S3e+L/K6 -
How to Remove "Root" User Account
How do I remove or disable the "root" user account after fixing the login problem with Leopard?
No, when I enabled the root account in the command prompt for the Leopard password problem, now I have an account called "Other" in my User Select Screen.
-
How to find which user using Grid?
Grid contril 10.2.0.5
I have over 50 users in Grid, how can I figure out who is online?Run the below queries to see all connected users in the Grid database...
set lines 100 pages 999
col ID format a15
select username
, sid || ',' || serial# "ID"
, status
, last_call_et "Last Activity"
from v$session
where username is not null
order by status desc
, last_call_et desc
--See the users current sql
Select sql_text
from v$sqlarea
where (address, hash_value) in
(select sql_address, sql_hash_value
from v$session
where username like '&username')
--Time since last user activity
set lines 100 pages 999
select username
, floor(last_call_et / 60) "Minutes"
, status
from v$session
where username is not null
order by last_call_et
Hope this helps...
Regards,
http://www.oracleracexpert.com
Click here to [Click here to remove parameter from spfile|http://www.oracleracexpert.com/2009/09/create-spfile-from-pfile.html]
Click here to learn [SPFILE and PFILE in Oracle|http://www.oracleracexpert.com/2009/11/oracle-spfile-and-pfile.html]
Click here for [Using UTL_MAIL in Oracle 10g |http://www.oracleracexpert.com/2009/11/send-email-using-utlmail-in-oracle-10g.html]
Maybe you are looking for
-
Error 23 trying to restore original iPad from iTunes
Pulled my original iPad out of my bag after returning from vacation and it had an alert on screen saying it required activation. It connected to my home wi-fi fine but failed when trying to activate. After a bunch of retries it went in to recovery mo
-
Any Opinions on the Best Speakers
hey I just got a new 17" MBP for school. Grad architecture, but I need some god small speakers for the MBP and a good headset when I need some softer tunes to get me through the late nights. I am not a fan of Bose. any suggestions on some great speak
-
StudyJDBC_SQLServer&&JDK
Thank you for your reply. I will Study JDBC by SQL Server (MS) 2000 && JDK1_3 in W2kp platform. Would you like give me step by step instruction or short course about it? First, there are two version SQL Server (MS) 2000, Standard and Enterprise. Whic
-
Labview and solidworks integration
Hello! I'm currently working on a project where we want to connect our logisticsprogram to a solidworksmodel to simulate how it would look in real life. Couse labview only controls the motors in the solidworks assambly I have to use 3d contact to lif
-
Budget Control System_Funds Management
Hi, In spro when I use the search term Budget Control System I could see 7 hits in 7 areas. But when I selected the row and double click the hit Budget Control System (BCS) in area Budget Control System(BCS) it is not leading to the exact area of